Class RPTrackerTorrent
- java.lang.Object
-
- com.biglybt.pifimpl.remote.RPObject
-
- com.biglybt.pifimpl.remote.tracker.RPTrackerTorrent
-
- All Implemented Interfaces:
TrackerTorrent
,java.io.Serializable
public class RPTrackerTorrent extends RPObject implements TrackerTorrent
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description long
announce_count
long
average_announce_count
long
average_bytes_in
long
average_bytes_out
long
average_downloaded
long
average_scrape_count
long
average_uploaded
int
bad_NAT_count
long
completed_count
protected TrackerTorrent
delegate
int
leecher_count
long
scrape_count
int
seed_count
int
status
RPTorrent
torrent
long
total_bytes_in
long
total_bytes_out
long
total_downloaded
long
total_left
long
total_uploaded
-
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 Modifier Constructor Description protected
RPTrackerTorrent(TrackerTorrent _delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RPReply
_process(RPRequest request)
protected void
_setDelegate(java.lang.Object _delegate)
java.lang.Object
_setLocal()
void
_setRemote(RPRequestDispatcher dispatcher)
void
addListener(TrackerTorrentListener listener)
void
addRemovalListener(TrackerTorrentWillBeRemovedListener listener)
boolean
canBeRemoved()
static RPTrackerTorrent
create(TrackerTorrent _delegate)
void
disableReplyCaching()
stops the tracker from caching replies to announces/scrapes for this torrentlong
getAnnounceCount()
long
getAverageAnnounceCount()
long
getAverageBytesIn()
average rate of bytes inlong
getAverageBytesOut()
average bytes sentlong
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 requestslong
getTotalBytesOut()
total bytes sent as response by the tracker - announce and scrape responseslong
getTotalDownloaded()
long
getTotalLeft()
long
getTotalUploaded()
boolean
isPassive()
void
remove()
void
removeListener(TrackerTorrentListener listener)
void
removeRemovalListener(TrackerTorrentWillBeRemovedListener listener)
void
start()
void
stop()
-
Methods inherited from class com.biglybt.pifimpl.remote.RPObject
_fixupLocal, _getDelegate, _getName, _getOID, _lookupLocal, _lookupLocal, _refresh, getDispatcher, notSupported, notSupported
-
-
-
-
Field Detail
-
delegate
protected transient TrackerTorrent delegate
-
torrent
public RPTorrent 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 Detail
-
RPTrackerTorrent
protected RPTrackerTorrent(TrackerTorrent _delegate)
-
-
Method Detail
-
create
public static RPTrackerTorrent create(TrackerTorrent _delegate)
-
_setDelegate
protected void _setDelegate(java.lang.Object _delegate)
- Overrides:
_setDelegate
in classRPObject
-
_setLocal
public java.lang.Object _setLocal() throws RPException
- Overrides:
_setLocal
in classRPObject
- Throws:
RPException
-
_setRemote
public void _setRemote(RPRequestDispatcher dispatcher)
- Overrides:
_setRemote
in classRPObject
-
start
public void start() throws TrackerException
- Specified by:
start
in interfaceTrackerTorrent
- Throws:
TrackerException
-
stop
public void stop() throws TrackerException
- Specified by:
stop
in interfaceTrackerTorrent
- Throws:
TrackerException
-
remove
public void remove() throws TrackerTorrentRemovalVetoException
- Specified by:
remove
in interfaceTrackerTorrent
- Throws:
TrackerTorrentRemovalVetoException
-
canBeRemoved
public boolean canBeRemoved() throws TrackerTorrentRemovalVetoException
- Specified by:
canBeRemoved
in interfaceTrackerTorrent
- Throws:
TrackerTorrentRemovalVetoException
-
getTorrent
public Torrent getTorrent()
- Specified by:
getTorrent
in interfaceTrackerTorrent
-
getPeers
public TrackerPeer[] 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
-
getDateAdded
public long getDateAdded()
- Specified by:
getDateAdded
in interfaceTrackerTorrent
- Returns:
-
addListener
public void addListener(TrackerTorrentListener listener)
- Specified by:
addListener
in interfaceTrackerTorrent
-
removeListener
public void removeListener(TrackerTorrentListener listener)
- Specified by:
removeListener
in interfaceTrackerTorrent
-
addRemovalListener
public void addRemovalListener(TrackerTorrentWillBeRemovedListener listener)
- Specified by:
addRemovalListener
in interfaceTrackerTorrent
-
removeRemovalListener
public void removeRemovalListener(TrackerTorrentWillBeRemovedListener listener)
- Specified by:
removeRemovalListener
in interfaceTrackerTorrent
-
-