org.gudy.azureus2.core3.tracker.client
Interface TRTrackerAnnouncerResponse

All Known Implementing Classes:
TRTrackerAnnouncerResponseImpl

public interface TRTrackerAnnouncerResponse


Field Summary
static int ST_OFFLINE
           
static int ST_ONLINE
           
static int ST_REPORTED_ERROR
           
 
Method Summary
 java.lang.String getAdditionalInfo()
          Returns any additional textual information associated with reponse.
 java.util.Map getExtensions()
           
 HashWrapper getHash()
           
 TRTrackerAnnouncerResponsePeer[] getPeers()
           
 int getScrapeCompleteCount()
           
 int getScrapeDownloadedCount()
           
 int getScrapeIncompleteCount()
           
 int getStatus()
          Returns the current status of the tracker
 java.lang.String getStatusString()
           
 long getTimeToWait()
          This value is always available
 java.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()

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()