FileDocCategorySizeDatePackage
DownloadAnnounceResult.javaAPI DocAzureus 3.0.3.42951Sun Nov 27 20:42:42 GMT 2005org.gudy.azureus2.plugins.download

DownloadAnnounceResult

public interface DownloadAnnounceResult
author
parg This class represents the results of an "announce" made to a tracker.

Fields Summary
public static final int
RT_SUCCESS
public static final int
RT_ERROR
Constructors Summary
Methods Summary
public DownloadgetDownload()
Gives access to the Download associated with this announce result

return
since
2.0.7.0

public java.lang.StringgetError()
For RT_ERROR this gives error details

return
since
2.0.7.0

public java.util.MapgetExtensions()

public intgetNonSeedCount()
This method gives the number of non-seeds (peers) we know about

return
since
2.0.7.0
note
This is not the number of non-seeds that the tracker knows about, even when the tracker returns the total non-seeds it knows of within its announce results. Use DownloadScrapeResult to retrieve that value.

public DownloadAnnounceResultPeer[]getPeers()

public intgetReportedPeerCount()
For RT_SUCCESS this gives the number of peers returned by the tracker

return
since
2.0.7.0

public intgetResponseType()
The response may represent a successful or failed announce

return
either RT_SUCCESS or RT_ERROR
since
2.0.7.0

public intgetSeedCount()
This method gives the number of seeds we know about (and may have received from a succession of announces).

return
since
2.0.7.0
note
This is not the number of seeds that the tracker knows about, even when the tracker returns the total seeds it knows of within its announce results. Use DownloadScrapeResult to retrieve that value.

public longgetTimeToWait()

public java.net.URLgetURL()
The URL for the tracker.

return
WILL BE NULL if the torrent isn't running