Class RPTrackerTorrent
java.lang.Object
com.biglybt.pifimpl.remote.RPObject
com.biglybt.pifimpl.remote.tracker.RPTrackerTorrent
- All Implemented Interfaces:
TrackerTorrent, Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionlonglonglonglonglonglonglongintlongprotected TrackerTorrentintlongintintlonglonglonglonglongFields inherited from class RPObject
__delegate, _dispatcher, _object_id, next_key, object_registry, object_registry_reverseFields inherited from interface TrackerTorrent
TS_PUBLISHED, TS_STARTED, TS_STOPPED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void_setDelegate(Object _delegate) void_setRemote(RPRequestDispatcher dispatcher) voidaddListener(TrackerTorrentListener listener) voidbooleanstatic RPTrackerTorrentcreate(TrackerTorrent _delegate) voidstops the tracker from caching replies to announces/scrapes for this torrentlonglonglongaverage 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 responseslonglonglongbooleanbooleanvoidremove()voidremoveListener(TrackerTorrentListener listener) voidvoidstart()voidstop()Methods inherited from class RPObject
_fixupLocal, _getDelegate, _getName, _getOID, _lookupLocal, _lookupLocal, _refresh, getDispatcher, notSupported, notSupported
-
Field Details
-
delegate
-
torrent
-
status
public int status -
total_uploaded
public long total_uploaded -
total_downloaded
public long total_downloaded -
average_uploaded
public long average_uploaded -
average_downloaded
public long average_downloaded -
total_left
public long total_left -
completed_count
public long completed_count -
total_bytes_in
public long total_bytes_in -
average_bytes_in
public long average_bytes_in -
total_bytes_out
public long total_bytes_out -
average_bytes_out
public long average_bytes_out -
scrape_count
public long scrape_count -
average_scrape_count
public long average_scrape_count -
announce_count
public long announce_count -
average_announce_count
public long average_announce_count -
seed_count
public int seed_count -
leecher_count
public int leecher_count -
bad_NAT_count
public int bad_NAT_count
-
-
Constructor Details
-
RPTrackerTorrent
-
-
Method Details
-
create
-
_setDelegate
- Overrides:
_setDelegatein classRPObject
-
_setLocal
- Overrides:
_setLocalin classRPObject- Throws:
RPException
-
_setRemote
- Overrides:
_setRemotein classRPObject
-
_process
-
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:
-
getScrapeCount
public long getScrapeCount()- Specified by:
getScrapeCountin interfaceTrackerTorrent
-
getAverageScrapeCount
public long getAverageScrapeCount()- Specified by:
getAverageScrapeCountin interfaceTrackerTorrent
-
getAnnounceCount
public long getAnnounceCount()- Specified by:
getAnnounceCountin interfaceTrackerTorrent
-
getAverageAnnounceCount
public long getAverageAnnounceCount()- Specified by:
getAverageAnnounceCountin 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:
-
addListener
- Specified by:
addListenerin interfaceTrackerTorrent
-
removeListener
- Specified by:
removeListenerin interfaceTrackerTorrent
-
addRemovalListener
- Specified by:
addRemovalListenerin interfaceTrackerTorrent
-
removeRemovalListener
- Specified by:
removeRemovalListenerin interfaceTrackerTorrent
-