Class TRTrackerAnnouncerResponseImpl
java.lang.Object
com.biglybt.core.tracker.client.impl.TRTrackerAnnouncerResponseImpl
- All Implemented Interfaces:
TRTrackerAnnouncerResponse
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprotected Mapprivate final HashWrapperprotected TRTrackerAnnouncerResponsePeer[]private TRTrackerAnnouncerRequestprivate intprivate intprivate intprivate final intprivate final longprivate final URLprivate booleanFields inherited from interface TRTrackerAnnouncerResponse
ST_OFFLINE, ST_ONLINE, ST_REPORTED_ERROR -
Constructor Summary
ConstructorsConstructorDescriptionTRTrackerAnnouncerResponseImpl(URL _url, HashWrapper _hash, int _status, long _time_to_wait) TRTrackerAnnouncerResponseImpl(URL _url, HashWrapper _hash, int _status, long _time_to_wait, TRTrackerAnnouncerResponsePeer[] _peers) TRTrackerAnnouncerResponseImpl(URL _url, HashWrapper _hash, int _status, long _time_to_wait, String _additional_info) -
Method Summary
Modifier and TypeMethodDescriptionReturns any additional textual information associated with reponse.getHash()getPeers()intintintintReturns the current status of the trackerlongThis value is always availablegetURL()voidprint()voidsetAdditionalInfo(String info) voidsetExtensions(Map _extensions) voidsetPeers(TRTrackerAnnouncerResponsePeer[] _peers) voidsetRequest(TRTrackerAnnouncerRequest _request) voidsetScrapeResult(int _complete, int _incomplete, int _downloaded) voidbooleanwasProbe()
-
Field Details
-
url
-
hash
-
status
private final int status -
time_to_wait
private final long time_to_wait -
additional_info
-
was_udp_probe
private boolean was_udp_probe -
scrape_complete
private int scrape_complete -
scrape_incomplete
private int scrape_incomplete -
scrape_downloaded
private int scrape_downloaded -
peers
-
extensions
-
request
-
-
Constructor Details
-
TRTrackerAnnouncerResponseImpl
-
TRTrackerAnnouncerResponseImpl
public TRTrackerAnnouncerResponseImpl(URL _url, HashWrapper _hash, int _status, long _time_to_wait, String _additional_info) -
TRTrackerAnnouncerResponseImpl
public TRTrackerAnnouncerResponseImpl(URL _url, HashWrapper _hash, int _status, long _time_to_wait, TRTrackerAnnouncerResponsePeer[] _peers)
-
-
Method Details
-
setRequest
-
getRequest
- Specified by:
getRequestin interfaceTRTrackerAnnouncerResponse
-
getHash
- Specified by:
getHashin interfaceTRTrackerAnnouncerResponse
-
getStatus
public int getStatus()Description copied from interface:TRTrackerAnnouncerResponseReturns the current status of the tracker- Specified by:
getStatusin interfaceTRTrackerAnnouncerResponse- Returns:
- see above ST_ set
-
getStatusString
- Specified by:
getStatusStringin interfaceTRTrackerAnnouncerResponse
-
setAdditionalInfo
-
setWasProbe
public void setWasProbe() -
wasProbe
public boolean wasProbe() -
getTimeToWait
public long getTimeToWait()Description copied from interface:TRTrackerAnnouncerResponseThis value is always available- Specified by:
getTimeToWaitin interfaceTRTrackerAnnouncerResponse- Returns:
- time to wait before requerying tracker
-
getAdditionalInfo
Description copied from interface:TRTrackerAnnouncerResponseReturns 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:
getAdditionalInfoin interfaceTRTrackerAnnouncerResponse- Returns:
- Additional information
-
setPeers
- Specified by:
setPeersin interfaceTRTrackerAnnouncerResponse
-
getPeers
- Specified by:
getPeersin interfaceTRTrackerAnnouncerResponse- Returns:
- peers reported by tracker. this will include the local peer as well
-
setExtensions
-
getExtensions
- Specified by:
getExtensionsin interfaceTRTrackerAnnouncerResponse
-
getURL
- Specified by:
getURLin interfaceTRTrackerAnnouncerResponse
-
getScrapeCompleteCount
public int getScrapeCompleteCount()- Specified by:
getScrapeCompleteCountin interfaceTRTrackerAnnouncerResponse
-
getScrapeIncompleteCount
public int getScrapeIncompleteCount()- Specified by:
getScrapeIncompleteCountin interfaceTRTrackerAnnouncerResponse
-
getScrapeDownloadedCount
public int getScrapeDownloadedCount()- Specified by:
getScrapeDownloadedCountin interfaceTRTrackerAnnouncerResponse
-
setScrapeResult
public void setScrapeResult(int _complete, int _incomplete, int _downloaded) -
print
public void print()- Specified by:
printin interfaceTRTrackerAnnouncerResponse
-
getString
-