Package com.biglybt.pif.download
Interface DownloadAnnounceResult
-
- All Known Implementing Classes:
DownloadAnnounceResultImpl
,RPDownloadAnnounceResult
public interface DownloadAnnounceResult
-
-
Field Summary
Fields Modifier and Type Field Description static int
RT_ERROR
static int
RT_SUCCESS
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.lang.String
getAdditionalInfo()
Download
getDownload()
Gives access to the Download associated with this announce resultjava.lang.String
getError()
For RT_ERROR this gives error detailsjava.util.Map
getExtensions()
int
getNonSeedCount()
This method gives the number of non-seeds (peers) we know aboutDownloadAnnounceResultPeer[]
getPeers()
int
getReportedPeerCount()
For RT_SUCCESS this gives the number of peers returned by the trackerint
getResponseType()
The response may represent a successful or failed announceint
getSeedCount()
This method gives the number of seeds we know about (and may have received from a succession of announces).long
getTimeToWait()
java.net.URL
getURL()
The URL for the tracker.
-
-
-
Field Detail
-
RT_SUCCESS
static final int RT_SUCCESS
- See Also:
- Constant Field Values
-
RT_ERROR
static final int RT_ERROR
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDownload
Download getDownload()
Gives access to the Download associated with this announce result- Returns:
- Since:
- 2.0.7.0
-
getResponseType
int getResponseType()
The response may represent a successful or failed announce- Returns:
- either RT_SUCCESS or RT_ERROR
- Since:
- 2.0.7.0
-
getReportedPeerCount
int getReportedPeerCount()
For RT_SUCCESS this gives the number of peers returned by the tracker- Returns:
- Since:
- 2.0.7.0
-
getSeedCount
int getSeedCount()
This method gives the number of seeds we know about (and may have received from a succession of announces).- Returns:
- Since:
- 2.0.7.0
-
getNonSeedCount
int getNonSeedCount()
This method gives the number of non-seeds (peers) we know about- Returns:
- Since:
- 2.0.7.0
-
getError
java.lang.String getError()
For RT_ERROR this gives error details- Returns:
- Since:
- 2.0.7.0
-
getAdditionalInfo
default java.lang.String getAdditionalInfo()
-
getURL
java.net.URL getURL()
The URL for the tracker.- Returns:
- WILL BE NULL if the torrent isn't running
-
getPeers
DownloadAnnounceResultPeer[] getPeers()
-
getTimeToWait
long getTimeToWait()
-
getExtensions
java.util.Map getExtensions()
-
-