|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gudy.azureus2.pluginsimpl.local.download.DownloadAnnounceResultImpl
public class DownloadAnnounceResultImpl
Field Summary | |
---|---|
protected Download |
download
|
protected TRTrackerAnnouncerResponse |
response
|
Fields inherited from interface org.gudy.azureus2.plugins.download.DownloadAnnounceResult |
---|
RT_ERROR, RT_SUCCESS |
Constructor Summary | |
---|---|
DownloadAnnounceResultImpl(Download _download,
TRTrackerAnnouncerResponse _response)
|
Method Summary | |
---|---|
Download |
getDownload()
Gives access to the Download associated with this announce result |
String |
getError()
For RT_ERROR this gives error details |
Map |
getExtensions()
|
int |
getNonSeedCount()
This method gives the number of non-seeds (peers) we know about |
DownloadAnnounceResultPeer[] |
getPeers()
|
int |
getReportedPeerCount()
For RT_SUCCESS this gives the number of peers returned by the tracker |
int |
getResponseType()
The response may represent a successful or failed announce |
int |
getSeedCount()
This method gives the number of seeds we know about (and may have received from a succession of announces). |
long |
getTimeToWait()
|
URL |
getURL()
The URL for the tracker. |
void |
setContent(TRTrackerAnnouncerResponse _response)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Download download
protected TRTrackerAnnouncerResponse response
Constructor Detail |
---|
public DownloadAnnounceResultImpl(Download _download, TRTrackerAnnouncerResponse _response)
Method Detail |
---|
public void setContent(TRTrackerAnnouncerResponse _response)
public Download getDownload()
DownloadAnnounceResult
getDownload
in interface DownloadAnnounceResult
public int getResponseType()
DownloadAnnounceResult
getResponseType
in interface DownloadAnnounceResult
public int getReportedPeerCount()
DownloadAnnounceResult
getReportedPeerCount
in interface DownloadAnnounceResult
public int getSeedCount()
DownloadAnnounceResult
getSeedCount
in interface DownloadAnnounceResult
public int getNonSeedCount()
DownloadAnnounceResult
getNonSeedCount
in interface DownloadAnnounceResult
public String getError()
DownloadAnnounceResult
getError
in interface DownloadAnnounceResult
public URL getURL()
DownloadAnnounceResult
getURL
in interface DownloadAnnounceResult
public DownloadAnnounceResultPeer[] getPeers()
getPeers
in interface DownloadAnnounceResult
public long getTimeToWait()
getTimeToWait
in interface DownloadAnnounceResult
public Map getExtensions()
getExtensions
in interface DownloadAnnounceResult
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |