org.gudy.azureus2.core3.tracker.client.impl
Class TRTrackerAnnouncerResponseImpl
java.lang.Object
org.gudy.azureus2.core3.tracker.client.impl.TRTrackerAnnouncerResponseImpl
- All Implemented Interfaces:
- TRTrackerAnnouncerResponse
public class TRTrackerAnnouncerResponseImpl
- extends java.lang.Object
- implements TRTrackerAnnouncerResponse
Constructor Summary |
TRTrackerAnnouncerResponseImpl(java.net.URL _url,
HashWrapper _hash,
int _status,
long _time_to_wait)
|
TRTrackerAnnouncerResponseImpl(java.net.URL _url,
HashWrapper _hash,
int _status,
long _time_to_wait,
java.lang.String _failure_reason)
|
TRTrackerAnnouncerResponseImpl(java.net.URL _url,
HashWrapper _hash,
int _status,
long _time_to_wait,
TRTrackerAnnouncerResponsePeer[] _peers)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
peers
protected TRTrackerAnnouncerResponsePeer[] peers
extensions
protected java.util.Map extensions
TRTrackerAnnouncerResponseImpl
public TRTrackerAnnouncerResponseImpl(java.net.URL _url,
HashWrapper _hash,
int _status,
long _time_to_wait)
TRTrackerAnnouncerResponseImpl
public TRTrackerAnnouncerResponseImpl(java.net.URL _url,
HashWrapper _hash,
int _status,
long _time_to_wait,
java.lang.String _failure_reason)
TRTrackerAnnouncerResponseImpl
public TRTrackerAnnouncerResponseImpl(java.net.URL _url,
HashWrapper _hash,
int _status,
long _time_to_wait,
TRTrackerAnnouncerResponsePeer[] _peers)
getHash
public HashWrapper getHash()
- Specified by:
getHash
in interface TRTrackerAnnouncerResponse
getStatus
public int getStatus()
- Description copied from interface:
TRTrackerAnnouncerResponse
- Returns the current status of the tracker
- Specified by:
getStatus
in interface TRTrackerAnnouncerResponse
- Returns:
- see above ST_ set
getStatusString
public java.lang.String getStatusString()
- Specified by:
getStatusString
in interface TRTrackerAnnouncerResponse
setFailureReason
public void setFailureReason(java.lang.String reason)
setWasProbe
public void setWasProbe()
wasProbe
public boolean wasProbe()
getTimeToWait
public long getTimeToWait()
- Description copied from interface:
TRTrackerAnnouncerResponse
- This value is always available
- Specified by:
getTimeToWait
in interface TRTrackerAnnouncerResponse
- Returns:
- time to wait before requerying tracker
getAdditionalInfo
public java.lang.String getAdditionalInfo()
- Description copied from interface:
TRTrackerAnnouncerResponse
- 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).
- Specified by:
getAdditionalInfo
in interface TRTrackerAnnouncerResponse
- Returns:
- Additional information
setPeers
public void setPeers(TRTrackerAnnouncerResponsePeer[] _peers)
- Specified by:
setPeers
in interface TRTrackerAnnouncerResponse
getPeers
public TRTrackerAnnouncerResponsePeer[] getPeers()
- Specified by:
getPeers
in interface TRTrackerAnnouncerResponse
- Returns:
- peers reported by tracker. this will include the local peer as well
setExtensions
public void setExtensions(java.util.Map _extensions)
getExtensions
public java.util.Map getExtensions()
- Specified by:
getExtensions
in interface TRTrackerAnnouncerResponse
getURL
public java.net.URL getURL()
- Specified by:
getURL
in interface TRTrackerAnnouncerResponse
getScrapeCompleteCount
public int getScrapeCompleteCount()
- Specified by:
getScrapeCompleteCount
in interface TRTrackerAnnouncerResponse
getScrapeIncompleteCount
public int getScrapeIncompleteCount()
- Specified by:
getScrapeIncompleteCount
in interface TRTrackerAnnouncerResponse
getScrapeDownloadedCount
public int getScrapeDownloadedCount()
- Specified by:
getScrapeDownloadedCount
in interface TRTrackerAnnouncerResponse
setScrapeResult
public void setScrapeResult(int _complete,
int _incomplete,
int _downloaded)
print
public void print()
- Specified by:
print
in interface TRTrackerAnnouncerResponse
getString
public java.lang.String getString()