Class TrackerTorrentImpl
java.lang.Object
com.biglybt.pifimpl.local.tracker.TrackerTorrentImpl
- All Implemented Interfaces:
TRHostTorrentListener, TRHostTorrentWillBeRemovedListener, TrackerTorrent
public class TrackerTorrentImpl
extends Object
implements TrackerTorrent, TRHostTorrentListener, TRHostTorrentWillBeRemovedListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected TRHostTorrentprotected Listprotected Listprotected AEMonitorFields inherited from interface TrackerTorrent
TS_PUBLISHED, TS_STARTED, TS_STOPPED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(TrackerTorrentListener listener) voidbooleanvoidstops the tracker from caching replies to announces/scrapes for this torrentbooleanlonglonglongaverage rate of bytes inlongaverage bytes sentlonglonglongintGives access to the number of peers that have failed NAT checks, 0 if NAT checking is disabled.longlongintgetPeers()longintintlongtotal bytes received by the tracker for this torrent - announce and scrape requestslongtotal bytes sent as response by the tracker - announce and scrape responseslonglonglonginthashCode()booleanbooleanvoidpostProcess(TRHostTorrentRequest request) voidpreProcess(TRHostTorrentRequest request) voidremove()voidremoveListener(TrackerTorrentListener listener) voidvoidstart()voidstop()void
-
Field Details
-
host_torrent
-
listeners_cow
-
removal_listeners
-
this_mon
-
-
Constructor Details
-
TrackerTorrentImpl
-
-
Method Details
-
getHostTorrent
-
start
- Specified by:
startin interfaceTrackerTorrent- Throws:
TrackerException
-
stop
- Specified by:
stopin interfaceTrackerTorrent- Throws:
TrackerException
-
remove
- Specified by:
removein interfaceTrackerTorrent- Throws:
TrackerTorrentRemovalVetoException
-
canBeRemoved
- Specified by:
canBeRemovedin interfaceTrackerTorrent- Throws:
TrackerTorrentRemovalVetoException
-
getTorrent
- Specified by:
getTorrentin interfaceTrackerTorrent
-
getPeers
- Specified by:
getPeersin interfaceTrackerTorrent
-
getStatus
public int getStatus()- Specified by:
getStatusin interfaceTrackerTorrent
-
getTotalUploaded
public long getTotalUploaded()- Specified by:
getTotalUploadedin interfaceTrackerTorrent
-
getTotalDownloaded
public long getTotalDownloaded()- Specified by:
getTotalDownloadedin interfaceTrackerTorrent
-
getAverageUploaded
public long getAverageUploaded()- Specified by:
getAverageUploadedin interfaceTrackerTorrent
-
getAverageDownloaded
public long getAverageDownloaded()- Specified by:
getAverageDownloadedin interfaceTrackerTorrent
-
getTotalLeft
public long getTotalLeft()- Specified by:
getTotalLeftin interfaceTrackerTorrent
-
getCompletedCount
public long getCompletedCount()- Specified by:
getCompletedCountin interfaceTrackerTorrent
-
getTotalBytesIn
public long getTotalBytesIn()Description copied from interface:TrackerTorrenttotal bytes received by the tracker for this torrent - announce and scrape requests- Specified by:
getTotalBytesInin interfaceTrackerTorrent- Returns:
-
getAverageBytesIn
public long getAverageBytesIn()Description copied from interface:TrackerTorrentaverage rate of bytes in- Specified by:
getAverageBytesInin interfaceTrackerTorrent- Returns:
-
getTotalBytesOut
public long getTotalBytesOut()Description copied from interface:TrackerTorrenttotal bytes sent as response by the tracker - announce and scrape responses- Specified by:
getTotalBytesOutin interfaceTrackerTorrent- Returns:
-
getAverageBytesOut
public long getAverageBytesOut()Description copied from interface:TrackerTorrentaverage bytes sent- Specified by:
getAverageBytesOutin interfaceTrackerTorrent- Returns:
-
getAverageScrapeCount
public long getAverageScrapeCount()- Specified by:
getAverageScrapeCountin interfaceTrackerTorrent
-
getScrapeCount
public long getScrapeCount()- Specified by:
getScrapeCountin interfaceTrackerTorrent
-
getAverageAnnounceCount
public long getAverageAnnounceCount()- Specified by:
getAverageAnnounceCountin interfaceTrackerTorrent
-
getAnnounceCount
public long getAnnounceCount()- Specified by:
getAnnounceCountin interfaceTrackerTorrent
-
getSeedCount
public int getSeedCount()- Specified by:
getSeedCountin interfaceTrackerTorrent
-
getLeecherCount
public int getLeecherCount()- Specified by:
getLeecherCountin interfaceTrackerTorrent
-
getBadNATCount
public int getBadNATCount()Description copied from interface:TrackerTorrentGives access to the number of peers that have failed NAT checks, 0 if NAT checking is disabled.- Specified by:
getBadNATCountin interfaceTrackerTorrent- Returns:
-
disableReplyCaching
public void disableReplyCaching()Description copied from interface:TrackerTorrentstops the tracker from caching replies to announces/scrapes for this torrent- Specified by:
disableReplyCachingin interfaceTrackerTorrent
-
isPassive
public boolean isPassive()- Specified by:
isPassivein interfaceTrackerTorrent
-
isExternal
public boolean isExternal()- Specified by:
isExternalin interfaceTrackerTorrent
-
getDateAdded
public long getDateAdded()- Specified by:
getDateAddedin interfaceTrackerTorrent- Returns:
-
preProcess
- Specified by:
preProcessin interfaceTRHostTorrentListener- Throws:
TRHostException
-
postProcess
- Specified by:
postProcessin interfaceTRHostTorrentListener- Throws:
TRHostException
-
addListener
- Specified by:
addListenerin interfaceTrackerTorrent
-
removeListener
- Specified by:
removeListenerin interfaceTrackerTorrent
-
torrentWillBeRemoved
- Specified by:
torrentWillBeRemovedin interfaceTRHostTorrentWillBeRemovedListener- Throws:
TRHostTorrentRemovalVetoException
-
addRemovalListener
- Specified by:
addRemovalListenerin interfaceTrackerTorrent
-
removeRemovalListener
- Specified by:
removeRemovalListenerin interfaceTrackerTorrent
-
equals
-
hashCode
-