| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.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  | 
 java.lang.String | 
getError()
For RT_ERROR this gives error details  | 
 java.util.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()
 | 
 java.net.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 DownloadAnnounceResultpublic int getResponseType()
DownloadAnnounceResult
getResponseType in interface DownloadAnnounceResultpublic int getReportedPeerCount()
DownloadAnnounceResult
getReportedPeerCount in interface DownloadAnnounceResultpublic int getSeedCount()
DownloadAnnounceResult
getSeedCount in interface DownloadAnnounceResultpublic int getNonSeedCount()
DownloadAnnounceResult
getNonSeedCount in interface DownloadAnnounceResultpublic java.lang.String getError()
DownloadAnnounceResult
getError in interface DownloadAnnounceResultpublic java.net.URL getURL()
DownloadAnnounceResult
getURL in interface DownloadAnnounceResultpublic DownloadAnnounceResultPeer[] getPeers()
getPeers in interface DownloadAnnounceResultpublic long getTimeToWait()
getTimeToWait in interface DownloadAnnounceResultpublic java.util.Map getExtensions()
getExtensions in interface DownloadAnnounceResult
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||