org.gudy.azureus2.core3.tracker.host
Interface TRHostTorrent

All Known Implementing Classes:
TRHostTorrentHostImpl, TRHostTorrentPublishImpl

public interface TRHostTorrent


Field Summary
static int TS_FAILED
           
static int TS_PUBLISHED
           
static int TS_STARTED
           
static int TS_STOPPED
           
 
Method Summary
 void addListener(TRHostTorrentListener l)
           
 void addRemovalListener(TRHostTorrentWillBeRemovedListener l)
           
 boolean canBeRemoved()
          doesn't guarantee that removal will be successful as conditions may change
 void disableReplyCaching()
           
 long getAnnounceCount()
           
 long getAverageAnnounceCount()
           
 long getAverageBytesIn()
           
 long getAverageBytesOut()
           
 long getAverageDownloaded()
           
 long getAverageScrapeCount()
           
 long getAverageUploaded()
           
 int getBadNATCount()
           
 long getCompletedCount()
           
 java.lang.Object getData(java.lang.String key)
          To retreive arbitrary objects against this object.
 long getDateAdded()
           
 int getLeecherCount()
           
 TRHostPeer[] getPeers()
           
 int getPort()
           
 long getScrapeCount()
           
 int getSeedCount()
           
 int getStatus()
           
 TOTorrent getTorrent()
           
 long getTotalBytesIn()
           
 long getTotalBytesOut()
           
 long getTotalDownloaded()
           
 long getTotalLeft()
           
 long getTotalUploaded()
           
 TRTrackerServerTorrent getTrackerTorrent()
           
 boolean isPassive()
           
 boolean isPersistent()
           
 void remove()
           
 void removeListener(TRHostTorrentListener l)
           
 void removeRemovalListener(TRHostTorrentWillBeRemovedListener l)
           
 void setData(java.lang.String key, java.lang.Object value)
          To store arbitrary objects against this object.
 void setPassive(boolean passive)
           
 void setTorrent(TOTorrent torrent)
           
 void start()
           
 void stop()
           
 

Field Detail

TS_FAILED

static final int TS_FAILED
See Also:
Constant Field Values

TS_STOPPED

static final int TS_STOPPED
See Also:
Constant Field Values

TS_STARTED

static final int TS_STARTED
See Also:
Constant Field Values

TS_PUBLISHED

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

start

void start()

stop

void stop()

remove

void remove()
            throws TRHostTorrentRemovalVetoException
Throws:
TRHostTorrentRemovalVetoException

canBeRemoved

boolean canBeRemoved()
                     throws TRHostTorrentRemovalVetoException
doesn't guarantee that removal will be successful as conditions may change

Returns:
true if OK, exception thrown otherwise
Throws:
TRHostTorrentRemovalVetoException

getStatus

int getStatus()

isPersistent

boolean isPersistent()

isPassive

boolean isPassive()

setPassive

void setPassive(boolean passive)

getDateAdded

long getDateAdded()

getTorrent

TOTorrent getTorrent()

setTorrent

void setTorrent(TOTorrent torrent)

getTrackerTorrent

TRTrackerServerTorrent getTrackerTorrent()

getPort

int getPort()

getPeers

TRHostPeer[] getPeers()

getSeedCount

int getSeedCount()

getLeecherCount

int getLeecherCount()

getBadNATCount

int getBadNATCount()

getAnnounceCount

long getAnnounceCount()

getAverageAnnounceCount

long getAverageAnnounceCount()

getScrapeCount

long getScrapeCount()

getAverageScrapeCount

long getAverageScrapeCount()

getCompletedCount

long getCompletedCount()

getTotalUploaded

long getTotalUploaded()

getTotalDownloaded

long getTotalDownloaded()

getTotalLeft

long getTotalLeft()

getAverageUploaded

long getAverageUploaded()

getAverageDownloaded

long getAverageDownloaded()

getTotalBytesIn

long getTotalBytesIn()

getAverageBytesIn

long getAverageBytesIn()

getTotalBytesOut

long getTotalBytesOut()

getAverageBytesOut

long getAverageBytesOut()

disableReplyCaching

void disableReplyCaching()

addListener

void addListener(TRHostTorrentListener l)

removeListener

void removeListener(TRHostTorrentListener l)

addRemovalListener

void addRemovalListener(TRHostTorrentWillBeRemovedListener l)

removeRemovalListener

void removeRemovalListener(TRHostTorrentWillBeRemovedListener l)

getData

java.lang.Object getData(java.lang.String key)
To retreive arbitrary objects against this object.


setData

void setData(java.lang.String key,
             java.lang.Object value)
To store arbitrary objects against this object.