org.gudy.azureus2.plugins.tracker
Interface TrackerTorrent

All Known Implementing Classes:
RPTrackerTorrent, TrackerTorrentImpl

public interface TrackerTorrent


Field Summary
static int TS_PUBLISHED
           
static int TS_STARTED
           
static int TS_STOPPED
           
 
Method Summary
 void addListener(TrackerTorrentListener listener)
           
 void addRemovalListener(TrackerTorrentWillBeRemovedListener listener)
           
 boolean canBeRemoved()
           
 void disableReplyCaching()
          stops the tracker from caching replies to announces/scrapes for this torrent
 long getAnnounceCount()
           
 long getAverageAnnounceCount()
           
 long getAverageBytesIn()
          average rate of bytes in
 long getAverageBytesOut()
          average bytes sent
 long getAverageDownloaded()
           
 long getAverageScrapeCount()
           
 long getAverageUploaded()
           
 int getBadNATCount()
          Gives access to the number of peers that have failed NAT checks, 0 if NAT checking is disabled.
 long getCompletedCount()
           
 long getDateAdded()
           
 int getLeecherCount()
           
 TrackerPeer[] getPeers()
           
 long getScrapeCount()
           
 int getSeedCount()
           
 int getStatus()
           
 Torrent getTorrent()
           
 long getTotalBytesIn()
          total bytes received by the tracker for this torrent - announce and scrape requests
 long getTotalBytesOut()
          total bytes sent as response by the tracker - announce and scrape responses
 long getTotalDownloaded()
           
 long getTotalLeft()
           
 long getTotalUploaded()
           
 boolean isPassive()
           
 void remove()
           
 void removeListener(TrackerTorrentListener listener)
           
 void removeRemovalListener(TrackerTorrentWillBeRemovedListener listener)
           
 void start()
           
 void stop()
           
 

Field Detail

TS_STARTED

static final int TS_STARTED
See Also:
Constant Field Values

TS_STOPPED

static final int TS_STOPPED
See Also:
Constant Field Values

TS_PUBLISHED

static final int TS_PUBLISHED
See Also:
Constant Field Values
Method Detail

start

void start()
           throws TrackerException
Throws:
TrackerException

stop

void stop()
          throws TrackerException
Throws:
TrackerException

remove

void remove()
            throws TrackerTorrentRemovalVetoException
Throws:
TrackerTorrentRemovalVetoException

canBeRemoved

boolean canBeRemoved()
                     throws TrackerTorrentRemovalVetoException
Throws:
TrackerTorrentRemovalVetoException

getTorrent

Torrent getTorrent()

getPeers

TrackerPeer[] getPeers()

getStatus

int getStatus()

getSeedCount

int getSeedCount()

getLeecherCount

int getLeecherCount()

getBadNATCount

int getBadNATCount()
Gives access to the number of peers that have failed NAT checks, 0 if NAT checking is disabled.

Returns:

getTotalUploaded

long getTotalUploaded()

getTotalDownloaded

long getTotalDownloaded()

getAverageUploaded

long getAverageUploaded()

getAverageDownloaded

long getAverageDownloaded()

getTotalLeft

long getTotalLeft()

getCompletedCount

long getCompletedCount()

getTotalBytesIn

long getTotalBytesIn()
total bytes received by the tracker for this torrent - announce and scrape requests

Returns:

getAverageBytesIn

long getAverageBytesIn()
average rate of bytes in

Returns:

getTotalBytesOut

long getTotalBytesOut()
total bytes sent as response by the tracker - announce and scrape responses

Returns:

getAverageBytesOut

long getAverageBytesOut()
average bytes sent

Returns:

getScrapeCount

long getScrapeCount()

getAverageScrapeCount

long getAverageScrapeCount()

getAnnounceCount

long getAnnounceCount()

getAverageAnnounceCount

long getAverageAnnounceCount()

disableReplyCaching

void disableReplyCaching()
stops the tracker from caching replies to announces/scrapes for this torrent


isPassive

boolean isPassive()

getDateAdded

long getDateAdded()
Returns:
Since:
2.3.0.5

addListener

void addListener(TrackerTorrentListener listener)

removeListener

void removeListener(TrackerTorrentListener listener)

addRemovalListener

void addRemovalListener(TrackerTorrentWillBeRemovedListener listener)

removeRemovalListener

void removeRemovalListener(TrackerTorrentWillBeRemovedListener listener)