Package com.biglybt.core.tracker.client
Interface TRTrackerAnnouncerResponse
-
- All Known Implementing Classes:
TRTrackerAnnouncerResponseImpl
public interface TRTrackerAnnouncerResponse
-
-
Field Summary
Fields Modifier and Type Field Description static int
ST_OFFLINE
static int
ST_ONLINE
static int
ST_REPORTED_ERROR
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getAdditionalInfo()
Returns any additional textual information associated with reponse.java.util.Map
getExtensions()
HashWrapper
getHash()
TRTrackerAnnouncerResponsePeer[]
getPeers()
TRTrackerAnnouncerRequest
getRequest()
int
getScrapeCompleteCount()
int
getScrapeDownloadedCount()
int
getScrapeIncompleteCount()
int
getStatus()
Returns the current status of the trackerjava.lang.String
getStatusString()
long
getTimeToWait()
This value is always availablejava.net.URL
getURL()
void
print()
void
setPeers(TRTrackerAnnouncerResponsePeer[] peers)
-
-
-
Field Detail
-
ST_OFFLINE
static final int ST_OFFLINE
- See Also:
- Constant Field Values
-
ST_REPORTED_ERROR
static final int ST_REPORTED_ERROR
- See Also:
- Constant Field Values
-
ST_ONLINE
static final int ST_ONLINE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getStatus
int getStatus()
Returns the current status of the tracker- Returns:
- see above ST_ set
-
getStatusString
java.lang.String getStatusString()
-
getHash
HashWrapper getHash()
-
getRequest
TRTrackerAnnouncerRequest getRequest()
-
getTimeToWait
long getTimeToWait()
This value is always available- Returns:
- time to wait before requerying tracker
-
getAdditionalInfo
java.lang.String getAdditionalInfo()
Returns any additional textual information associated with reponse. If the status is ST_REPORTED_ERROR, this will return the error description (possibly directly from the tracker).- Returns:
- Additional information
-
getPeers
TRTrackerAnnouncerResponsePeer[] getPeers()
- Returns:
- peers reported by tracker. this will include the local peer as well
-
setPeers
void setPeers(TRTrackerAnnouncerResponsePeer[] peers)
-
getExtensions
java.util.Map getExtensions()
-
getURL
java.net.URL getURL()
-
getScrapeCompleteCount
int getScrapeCompleteCount()
-
getScrapeIncompleteCount
int getScrapeIncompleteCount()
-
getScrapeDownloadedCount
int getScrapeDownloadedCount()
-
print
void print()
-
-