org.gudy.azureus2.pluginsimpl.remote.tracker
Class RPTrackerTorrent

java.lang.Object
  extended by org.gudy.azureus2.pluginsimpl.remote.RPObject
      extended by org.gudy.azureus2.pluginsimpl.remote.tracker.RPTrackerTorrent
All Implemented Interfaces:
java.io.Serializable, TrackerTorrent

public class RPTrackerTorrent
extends RPObject
implements TrackerTorrent

Author:
parg
See Also:
Serialized Form

Field Summary
 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 org.gudy.azureus2.pluginsimpl.remote.RPObject
__delegate, _dispatcher, _object_id, next_key, object_registry, object_registry_reverse
 
Fields inherited from interface org.gudy.azureus2.plugins.tracker.TrackerTorrent
TS_PUBLISHED, TS_STARTED, TS_STOPPED
 
Constructor Summary
protected RPTrackerTorrent(TrackerTorrent _delegate)
           
 
Method Summary
 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 torrent
 long getAnnounceCount()
           
 long getAverageAnnounceCount()
           
 long getAverageBytesIn()
          average rate of bytes in
 long getAverageBytesOut()
          average bytes sent
 long 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 requests
 long getTotalBytesOut()
          total bytes sent as response by the tracker - announce and scrape responses
 long 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 org.gudy.azureus2.pluginsimpl.remote.RPObject
_fixupLocal, _getDelegate, _getName, _getOID, _lookupLocal, _lookupLocal, _refresh, getDispatcher, notSupported, notSupported
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 class RPObject

_setLocal

public java.lang.Object _setLocal()
                           throws RPException
Overrides:
_setLocal in class RPObject
Throws:
RPException

_setRemote

public void _setRemote(RPRequestDispatcher dispatcher)
Overrides:
_setRemote in class RPObject

_process

public RPReply _process(RPRequest request)
Overrides:
_process in class RPObject

start

public void start()
           throws TrackerException
Specified by:
start in interface TrackerTorrent
Throws:
TrackerException

stop

public void stop()
          throws TrackerException
Specified by:
stop in interface TrackerTorrent
Throws:
TrackerException

remove

public void remove()
            throws TrackerTorrentRemovalVetoException
Specified by:
remove in interface TrackerTorrent
Throws:
TrackerTorrentRemovalVetoException

canBeRemoved

public boolean canBeRemoved()
                     throws TrackerTorrentRemovalVetoException
Specified by:
canBeRemoved in interface TrackerTorrent
Throws:
TrackerTorrentRemovalVetoException

getTorrent

public Torrent getTorrent()
Specified by:
getTorrent in interface TrackerTorrent

getPeers

public TrackerPeer[] getPeers()
Specified by:
getPeers in interface TrackerTorrent

getStatus

public int getStatus()
Specified by:
getStatus in interface TrackerTorrent

getTotalUploaded

public long getTotalUploaded()
Specified by:
getTotalUploaded in interface TrackerTorrent

getTotalDownloaded

public long getTotalDownloaded()
Specified by:
getTotalDownloaded in interface TrackerTorrent

getAverageUploaded

public long getAverageUploaded()
Specified by:
getAverageUploaded in interface TrackerTorrent

getAverageDownloaded

public long getAverageDownloaded()
Specified by:
getAverageDownloaded in interface TrackerTorrent

getTotalLeft

public long getTotalLeft()
Specified by:
getTotalLeft in interface TrackerTorrent

getCompletedCount

public long getCompletedCount()
Specified by:
getCompletedCount in interface TrackerTorrent

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 interface TrackerTorrent
Returns:

getAverageBytesIn

public long getAverageBytesIn()
Description copied from interface: TrackerTorrent
average rate of bytes in

Specified by:
getAverageBytesIn in interface TrackerTorrent
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 interface TrackerTorrent
Returns:

getAverageBytesOut

public long getAverageBytesOut()
Description copied from interface: TrackerTorrent
average bytes sent

Specified by:
getAverageBytesOut in interface TrackerTorrent
Returns:

getScrapeCount

public long getScrapeCount()
Specified by:
getScrapeCount in interface TrackerTorrent

getAverageScrapeCount

public long getAverageScrapeCount()
Specified by:
getAverageScrapeCount in interface TrackerTorrent

getAnnounceCount

public long getAnnounceCount()
Specified by:
getAnnounceCount in interface TrackerTorrent

getAverageAnnounceCount

public long getAverageAnnounceCount()
Specified by:
getAverageAnnounceCount in interface TrackerTorrent

getSeedCount

public int getSeedCount()
Specified by:
getSeedCount in interface TrackerTorrent

getLeecherCount

public int getLeecherCount()
Specified by:
getLeecherCount in interface TrackerTorrent

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 interface TrackerTorrent
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 interface TrackerTorrent

isPassive

public boolean isPassive()
Specified by:
isPassive in interface TrackerTorrent

getDateAdded

public long getDateAdded()
Specified by:
getDateAdded in interface TrackerTorrent
Returns:

addListener

public void addListener(TrackerTorrentListener listener)
Specified by:
addListener in interface TrackerTorrent

removeListener

public void removeListener(TrackerTorrentListener listener)
Specified by:
removeListener in interface TrackerTorrent

addRemovalListener

public void addRemovalListener(TrackerTorrentWillBeRemovedListener listener)
Specified by:
addRemovalListener in interface TrackerTorrent

removeRemovalListener

public void removeRemovalListener(TrackerTorrentWillBeRemovedListener listener)
Specified by:
removeRemovalListener in interface TrackerTorrent