org.gudy.azureus2.pluginsimpl.remote.download
Class RPDownloadAnnounceResult

java.lang.Object
  extended by org.gudy.azureus2.pluginsimpl.remote.RPObject
      extended by org.gudy.azureus2.pluginsimpl.remote.download.RPDownloadAnnounceResult
All Implemented Interfaces:
Serializable, DownloadAnnounceResult

public class RPDownloadAnnounceResult
extends RPObject
implements DownloadAnnounceResult

See Also:
Serialized Form

Field Summary
protected  DownloadAnnounceResult delegate
           
 int non_seed_count
           
 int seed_count
           
 
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.download.DownloadAnnounceResult
RT_ERROR, RT_SUCCESS
 
Constructor Summary
protected RPDownloadAnnounceResult(DownloadAnnounceResult _delegate)
           
 
Method Summary
 RPReply _process(RPRequest request)
           
protected  void _setDelegate(Object _delegate)
           
 Object _setLocal()
           
static RPDownloadAnnounceResult create(DownloadAnnounceResult _delegate)
           
 Download getDownload()
          Gives access to the Download associated with this announce result
 String getError()
          For RT_ERROR this gives error details
 Map getExtensions()
           
 int getNonSeedCount()
          This method gives the number of non-seeds (peers) we know about
 DownloadAnnounceResultPeer[] getPeers()
           
 int getReportedPeerCount()
          For RT_SUCCESS this gives the number of peers returned by the tracker
 int getResponseType()
          The response may represent a successful or failed announce
 int getSeedCount()
          This method gives the number of seeds we know about (and may have received from a succession of announces).
 long getTimeToWait()
           
 URL getURL()
          The URL for the tracker.
 
Methods inherited from class org.gudy.azureus2.pluginsimpl.remote.RPObject
_fixupLocal, _getDelegate, _getName, _getOID, _lookupLocal, _lookupLocal, _refresh, _setRemote, 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 DownloadAnnounceResult delegate

seed_count

public int seed_count

non_seed_count

public int non_seed_count
Constructor Detail

RPDownloadAnnounceResult

protected RPDownloadAnnounceResult(DownloadAnnounceResult _delegate)
Method Detail

create

public static RPDownloadAnnounceResult create(DownloadAnnounceResult _delegate)

_setDelegate

protected void _setDelegate(Object _delegate)
Overrides:
_setDelegate in class RPObject

_setLocal

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

_process

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

getDownload

public Download getDownload()
Description copied from interface: DownloadAnnounceResult
Gives access to the Download associated with this announce result

Specified by:
getDownload in interface DownloadAnnounceResult
Returns:

getResponseType

public int getResponseType()
Description copied from interface: DownloadAnnounceResult
The response may represent a successful or failed announce

Specified by:
getResponseType in interface DownloadAnnounceResult
Returns:
either RT_SUCCESS or RT_ERROR

getReportedPeerCount

public int getReportedPeerCount()
Description copied from interface: DownloadAnnounceResult
For RT_SUCCESS this gives the number of peers returned by the tracker

Specified by:
getReportedPeerCount in interface DownloadAnnounceResult
Returns:

getSeedCount

public int getSeedCount()
Description copied from interface: DownloadAnnounceResult
This method gives the number of seeds we know about (and may have received from a succession of announces).

Specified by:
getSeedCount in interface DownloadAnnounceResult
Returns:

getNonSeedCount

public int getNonSeedCount()
Description copied from interface: DownloadAnnounceResult
This method gives the number of non-seeds (peers) we know about

Specified by:
getNonSeedCount in interface DownloadAnnounceResult
Returns:

getError

public String getError()
Description copied from interface: DownloadAnnounceResult
For RT_ERROR this gives error details

Specified by:
getError in interface DownloadAnnounceResult
Returns:

getURL

public URL getURL()
Description copied from interface: DownloadAnnounceResult
The URL for the tracker.

Specified by:
getURL in interface DownloadAnnounceResult
Returns:
WILL BE NULL if the torrent isn't running

getPeers

public DownloadAnnounceResultPeer[] getPeers()
Specified by:
getPeers in interface DownloadAnnounceResult

getTimeToWait

public long getTimeToWait()
Specified by:
getTimeToWait in interface DownloadAnnounceResult

getExtensions

public Map getExtensions()
Specified by:
getExtensions in interface DownloadAnnounceResult