org.gudy.azureus2.plugins.download
Interface DownloadScrapeResult

All Known Implementing Classes:
DownloadScrapeResultImpl, RPDownloadScrapeResult

public interface DownloadScrapeResult

Author:
parg This class represents the results of scrapes for the download

Field Summary
static int RT_ERROR
           
static int RT_SUCCESS
           
 
Method Summary
 Download getDownload()
          Gives access to the associated download
 long getNextScrapeStartTime()
           
 int getNonSeedCount()
          Gives the number of non-seeds returned by the scrape
 int getResponseType()
          A scrape result can denote either a successful or failed scrape.
 long getScrapeStartTime()
           
 int getSeedCount()
          Gives the number of seeds returned by the scrape
 java.lang.String getStatus()
          returns a string representation of the scrape status
 java.net.URL getURL()
          The URL for the tracker
 void setNextScrapeStartTime(long nextScrapeStartTime)
          Sets the next scrape time
 

Field Detail

RT_SUCCESS

static final int RT_SUCCESS
See Also:
Constant Field Values

RT_ERROR

static final int RT_ERROR
See Also:
Constant Field Values
Method Detail

getDownload

Download getDownload()
Gives access to the associated download

Returns:
Since:
2.0.7.0

getResponseType

int getResponseType()
A scrape result can denote either a successful or failed scrape.

Returns:
RT_SUCCESS or RT_ERROR
Since:
2.0.7.0

getSeedCount

int getSeedCount()
Gives the number of seeds returned by the scrape

Returns:
Since:
2.0.7.0

getNonSeedCount

int getNonSeedCount()
Gives the number of non-seeds returned by the scrape

Returns:
Since:
2.0.7.0

getScrapeStartTime

long getScrapeStartTime()

setNextScrapeStartTime

void setNextScrapeStartTime(long nextScrapeStartTime)
Sets the next scrape time

Parameters:
nextScrapeStartTime - time to start in milliseconds since epoch
Since:
2.1.0.2

getNextScrapeStartTime

long getNextScrapeStartTime()

getStatus

java.lang.String getStatus()
returns a string representation of the scrape status

Returns:
Since:
2.1.0.4

getURL

java.net.URL getURL()
The URL for the tracker

Returns: