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 TypeFieldDescriptionlong
long
long
long
long
long
long
int
long
protected TrackerTorrent
int
long
int
int
long
long
long
long
long
Fields inherited from class com.biglybt.pifimpl.remote.RPObject
__delegate, _dispatcher, _object_id, next_key, object_registry, object_registry_reverse
Fields inherited from interface com.biglybt.pif.tracker.TrackerTorrent
TS_PUBLISHED, TS_STARTED, TS_STOPPED
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
_setDelegate
(Object _delegate) void
_setRemote
(RPRequestDispatcher dispatcher) void
addListener
(TrackerTorrentListener listener) void
boolean
static RPTrackerTorrent
create
(TrackerTorrent _delegate) void
stops the tracker from caching replies to announces/scrapes for this torrentlong
long
long
average rate of bytes inlong
average bytes sentlong
long
long
int
Gives access to the number of peers that have failed NAT checks, 0 if NAT checking is disabled.long
long
int
getPeers()
long
int
int
long
total bytes received by the tracker for this torrent - announce and scrape requestslong
total bytes sent as response by the tracker - announce and scrape responseslong
long
long
boolean
boolean
void
remove()
void
removeListener
(TrackerTorrentListener listener) void
void
start()
void
stop()
Methods inherited from class com.biglybt.pifimpl.remote.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:
_setDelegate
in classRPObject
-
_setLocal
- Overrides:
_setLocal
in classRPObject
- Throws:
RPException
-
_setRemote
- Overrides:
_setRemote
in classRPObject
-
_process
-
start
- Specified by:
start
in interfaceTrackerTorrent
- Throws:
TrackerException
-
stop
- Specified by:
stop
in interfaceTrackerTorrent
- Throws:
TrackerException
-
remove
- Specified by:
remove
in interfaceTrackerTorrent
- Throws:
TrackerTorrentRemovalVetoException
-
canBeRemoved
- Specified by:
canBeRemoved
in interfaceTrackerTorrent
- Throws:
TrackerTorrentRemovalVetoException
-
getTorrent
- Specified by:
getTorrent
in interfaceTrackerTorrent
-
getPeers
- Specified by:
getPeers
in interfaceTrackerTorrent
-
getStatus
public int getStatus()- Specified by:
getStatus
in interfaceTrackerTorrent
-
getTotalUploaded
public long getTotalUploaded()- Specified by:
getTotalUploaded
in interfaceTrackerTorrent
-
getTotalDownloaded
public long getTotalDownloaded()- Specified by:
getTotalDownloaded
in interfaceTrackerTorrent
-
getAverageUploaded
public long getAverageUploaded()- Specified by:
getAverageUploaded
in interfaceTrackerTorrent
-
getAverageDownloaded
public long getAverageDownloaded()- Specified by:
getAverageDownloaded
in interfaceTrackerTorrent
-
getTotalLeft
public long getTotalLeft()- Specified by:
getTotalLeft
in interfaceTrackerTorrent
-
getCompletedCount
public long getCompletedCount()- Specified by:
getCompletedCount
in interfaceTrackerTorrent
-
getTotalBytesIn
public long getTotalBytesIn()Description copied from interface:TrackerTorrent
total bytes received by the tracker for this torrent - announce and scrape requests- Specified by:
getTotalBytesIn
in interfaceTrackerTorrent
- Returns:
-
getAverageBytesIn
public long getAverageBytesIn()Description copied from interface:TrackerTorrent
average rate of bytes in- Specified by:
getAverageBytesIn
in interfaceTrackerTorrent
- Returns:
-
getTotalBytesOut
public long getTotalBytesOut()Description copied from interface:TrackerTorrent
total bytes sent as response by the tracker - announce and scrape responses- Specified by:
getTotalBytesOut
in interfaceTrackerTorrent
- Returns:
-
getAverageBytesOut
public long getAverageBytesOut()Description copied from interface:TrackerTorrent
average bytes sent- Specified by:
getAverageBytesOut
in interfaceTrackerTorrent
- Returns:
-
getScrapeCount
public long getScrapeCount()- Specified by:
getScrapeCount
in interfaceTrackerTorrent
-
getAverageScrapeCount
public long getAverageScrapeCount()- Specified by:
getAverageScrapeCount
in interfaceTrackerTorrent
-
getAnnounceCount
public long getAnnounceCount()- Specified by:
getAnnounceCount
in interfaceTrackerTorrent
-
getAverageAnnounceCount
public long getAverageAnnounceCount()- Specified by:
getAverageAnnounceCount
in interfaceTrackerTorrent
-
getSeedCount
public int getSeedCount()- Specified by:
getSeedCount
in interfaceTrackerTorrent
-
getLeecherCount
public int getLeecherCount()- Specified by:
getLeecherCount
in interfaceTrackerTorrent
-
getBadNATCount
public int getBadNATCount()Description copied from interface:TrackerTorrent
Gives access to the number of peers that have failed NAT checks, 0 if NAT checking is disabled.- Specified by:
getBadNATCount
in interfaceTrackerTorrent
- Returns:
-
disableReplyCaching
public void disableReplyCaching()Description copied from interface:TrackerTorrent
stops the tracker from caching replies to announces/scrapes for this torrent- Specified by:
disableReplyCaching
in interfaceTrackerTorrent
-
isPassive
public boolean isPassive()- Specified by:
isPassive
in interfaceTrackerTorrent
-
isExternal
public boolean isExternal()- Specified by:
isExternal
in interfaceTrackerTorrent
-
getDateAdded
public long getDateAdded()- Specified by:
getDateAdded
in interfaceTrackerTorrent
- Returns:
-
addListener
- Specified by:
addListener
in interfaceTrackerTorrent
-
removeListener
- Specified by:
removeListener
in interfaceTrackerTorrent
-
addRemovalListener
- Specified by:
addRemovalListener
in interfaceTrackerTorrent
-
removeRemovalListener
- Specified by:
removeRemovalListener
in interfaceTrackerTorrent
-