Class RPDownloadAnnounceResult
java.lang.Object
com.biglybt.pifimpl.remote.RPObject
com.biglybt.pifimpl.remote.download.RPDownloadAnnounceResult
- All Implemented Interfaces:
DownloadAnnounceResult, Serializable
- See Also:
-
Field Summary
FieldsFields inherited from class RPObject
__delegate, _dispatcher, _object_id, next_key, object_registry, object_registry_reverseFields inherited from interface DownloadAnnounceResult
RT_ERROR, RT_SUCCESS -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRPDownloadAnnounceResult(DownloadAnnounceResult _delegate) -
Method Summary
Modifier and TypeMethodDescriptionprotected void_setDelegate(Object _delegate) static RPDownloadAnnounceResultcreate(DownloadAnnounceResult _delegate) Gives access to the Download associated with this announce resultgetError()For RT_ERROR this gives error detailsintThis method gives the number of non-seeds (peers) we know aboutgetPeers()intFor RT_SUCCESS this gives the number of peers returned by the trackerintThe response may represent a successful or failed announceintThis method gives the number of seeds we know about (and may have received from a succession of announces).longgetURL()The URL for the tracker.Methods inherited from class RPObject
_fixupLocal, _getDelegate, _getName, _getOID, _lookupLocal, _lookupLocal, _refresh, _setRemote, getDispatcher, notSupported, notSupportedMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface DownloadAnnounceResult
getAdditionalInfo
-
Field Details
-
delegate
-
seed_count
public int seed_count -
non_seed_count
public int non_seed_count
-
-
Constructor Details
-
RPDownloadAnnounceResult
-
-
Method Details
-
create
-
_setDelegate
- Overrides:
_setDelegatein classRPObject
-
_setLocal
- Overrides:
_setLocalin classRPObject- Throws:
RPException
-
_process
-
getDownload
Description copied from interface:DownloadAnnounceResultGives access to the Download associated with this announce result- Specified by:
getDownloadin interfaceDownloadAnnounceResult- Returns:
-
getResponseType
public int getResponseType()Description copied from interface:DownloadAnnounceResultThe response may represent a successful or failed announce- Specified by:
getResponseTypein interfaceDownloadAnnounceResult- Returns:
- either RT_SUCCESS or RT_ERROR
-
getReportedPeerCount
public int getReportedPeerCount()Description copied from interface:DownloadAnnounceResultFor RT_SUCCESS this gives the number of peers returned by the tracker- Specified by:
getReportedPeerCountin interfaceDownloadAnnounceResult- Returns:
-
getSeedCount
public int getSeedCount()Description copied from interface:DownloadAnnounceResultThis method gives the number of seeds we know about (and may have received from a succession of announces).- Specified by:
getSeedCountin interfaceDownloadAnnounceResult- Returns:
-
getNonSeedCount
public int getNonSeedCount()Description copied from interface:DownloadAnnounceResultThis method gives the number of non-seeds (peers) we know about- Specified by:
getNonSeedCountin interfaceDownloadAnnounceResult- Returns:
-
getError
Description copied from interface:DownloadAnnounceResultFor RT_ERROR this gives error details- Specified by:
getErrorin interfaceDownloadAnnounceResult- Returns:
-
getURL
Description copied from interface:DownloadAnnounceResultThe URL for the tracker.- Specified by:
getURLin interfaceDownloadAnnounceResult- Returns:
- WILL BE NULL if the torrent isn't running
-
getPeers
- Specified by:
getPeersin interfaceDownloadAnnounceResult
-
getTimeToWait
public long getTimeToWait()- Specified by:
getTimeToWaitin interfaceDownloadAnnounceResult
-
getExtensions
- Specified by:
getExtensionsin interfaceDownloadAnnounceResult
-