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 TRHostTorrent
protected List
protected List
protected AEMonitor
Fields inherited from interface com.biglybt.pif.tracker.TrackerTorrent
TS_PUBLISHED, TS_STARTED, TS_STOPPED
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(TrackerTorrentListener listener) void
boolean
void
stops the tracker from caching replies to announces/scrapes for this torrentboolean
long
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
int
hashCode()
boolean
boolean
void
postProcess
(TRHostTorrentRequest request) void
preProcess
(TRHostTorrentRequest request) void
remove()
void
removeListener
(TrackerTorrentListener listener) void
void
start()
void
stop()
void
-
Field Details
-
host_torrent
-
listeners_cow
-
removal_listeners
-
this_mon
-
-
Constructor Details
-
TrackerTorrentImpl
-
-
Method Details
-
getHostTorrent
-
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:
-
getAverageScrapeCount
public long getAverageScrapeCount()- Specified by:
getAverageScrapeCount
in interfaceTrackerTorrent
-
getScrapeCount
public long getScrapeCount()- Specified by:
getScrapeCount
in interfaceTrackerTorrent
-
getAverageAnnounceCount
public long getAverageAnnounceCount()- Specified by:
getAverageAnnounceCount
in interfaceTrackerTorrent
-
getAnnounceCount
public long getAnnounceCount()- Specified by:
getAnnounceCount
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:
-
preProcess
- Specified by:
preProcess
in interfaceTRHostTorrentListener
- Throws:
TRHostException
-
postProcess
- Specified by:
postProcess
in interfaceTRHostTorrentListener
- Throws:
TRHostException
-
addListener
- Specified by:
addListener
in interfaceTrackerTorrent
-
removeListener
- Specified by:
removeListener
in interfaceTrackerTorrent
-
torrentWillBeRemoved
- Specified by:
torrentWillBeRemoved
in interfaceTRHostTorrentWillBeRemovedListener
- Throws:
TRHostTorrentRemovalVetoException
-
addRemovalListener
- Specified by:
addRemovalListener
in interfaceTrackerTorrent
-
removeRemovalListener
- Specified by:
removeRemovalListener
in interfaceTrackerTorrent
-
equals
-
hashCode
public int hashCode()
-