Class RPDownloadScrapeResult
java.lang.Object
com.biglybt.pifimpl.remote.RPObject
com.biglybt.pifimpl.remote.download.RPDownloadScrapeResult
- All Implemented Interfaces:
DownloadScrapeResult
,Serializable
- See Also:
-
Field Summary
FieldsFields inherited from class com.biglybt.pifimpl.remote.RPObject
__delegate, _dispatcher, _object_id, next_key, object_registry, object_registry_reverse
Fields inherited from interface com.biglybt.pif.download.DownloadScrapeResult
RT_ERROR, RT_SUCCESS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
_setDelegate
(Object _delegate) static RPDownloadScrapeResult
create
(DownloadScrapeResult _delegate) Gives access to the associated downloadlong
int
Gives the number of non-seeds returned by the scrapeint
A scrape result can denote either a successful or failed scrape.long
int
Gives the number of seeds returned by the scrapereturns a string representation of the scrape statusgetURL()
The URL for the trackervoid
setNextScrapeStartTime
(long nextScrapeStartTime) Sets the next scrape timeMethods inherited from class com.biglybt.pifimpl.remote.RPObject
_fixupLocal, _getDelegate, _getName, _getOID, _lookupLocal, _lookupLocal, _refresh, _setRemote, getDispatcher, notSupported, notSupported
-
Field Details
-
delegate
-
seed_count
public int seed_count -
non_seed_count
public int non_seed_count
-
-
Constructor Details
-
RPDownloadScrapeResult
-
-
Method Details
-
create
-
_setDelegate
- Overrides:
_setDelegate
in classRPObject
-
_setLocal
- Overrides:
_setLocal
in classRPObject
- Throws:
RPException
-
_process
-
getDownload
Description copied from interface:DownloadScrapeResult
Gives access to the associated download- Specified by:
getDownload
in interfaceDownloadScrapeResult
- Returns:
-
getResponseType
public int getResponseType()Description copied from interface:DownloadScrapeResult
A scrape result can denote either a successful or failed scrape.- Specified by:
getResponseType
in interfaceDownloadScrapeResult
- Returns:
- RT_SUCCESS or RT_ERROR
-
getSeedCount
public int getSeedCount()Description copied from interface:DownloadScrapeResult
Gives the number of seeds returned by the scrape- Specified by:
getSeedCount
in interfaceDownloadScrapeResult
- Returns:
-
getNonSeedCount
public int getNonSeedCount()Description copied from interface:DownloadScrapeResult
Gives the number of non-seeds returned by the scrape- Specified by:
getNonSeedCount
in interfaceDownloadScrapeResult
- Returns:
-
getScrapeStartTime
public long getScrapeStartTime()- Specified by:
getScrapeStartTime
in interfaceDownloadScrapeResult
-
setNextScrapeStartTime
public void setNextScrapeStartTime(long nextScrapeStartTime) Description copied from interface:DownloadScrapeResult
Sets the next scrape time- Specified by:
setNextScrapeStartTime
in interfaceDownloadScrapeResult
- Parameters:
nextScrapeStartTime
- time to start in milliseconds since epoch
-
getNextScrapeStartTime
public long getNextScrapeStartTime()- Specified by:
getNextScrapeStartTime
in interfaceDownloadScrapeResult
-
getStatus
Description copied from interface:DownloadScrapeResult
returns a string representation of the scrape status- Specified by:
getStatus
in interfaceDownloadScrapeResult
- Returns:
-
getURL
Description copied from interface:DownloadScrapeResult
The URL for the tracker- Specified by:
getURL
in interfaceDownloadScrapeResult
- Returns:
-