org.gudy.azureus2.pluginsimpl.remote.download
Class RPDownloadScrapeResult

java.lang.Object
  extended by org.gudy.azureus2.pluginsimpl.remote.RPObject
      extended by org.gudy.azureus2.pluginsimpl.remote.download.RPDownloadScrapeResult
All Implemented Interfaces:
Serializable, DownloadScrapeResult

public class RPDownloadScrapeResult
extends RPObject
implements DownloadScrapeResult

See Also:
Serialized Form

Field Summary
protected  DownloadScrapeResult delegate
           
 int non_seed_count
           
 int seed_count
           
 
Fields inherited from class org.gudy.azureus2.pluginsimpl.remote.RPObject
__delegate, _dispatcher, _object_id, next_key, object_registry, object_registry_reverse
 
Fields inherited from interface org.gudy.azureus2.plugins.download.DownloadScrapeResult
RT_ERROR, RT_SUCCESS
 
Constructor Summary
protected RPDownloadScrapeResult(DownloadScrapeResult _delegate)
           
 
Method Summary
 RPReply _process(RPRequest request)
           
protected  void _setDelegate(Object _delegate)
           
 Object _setLocal()
           
static RPDownloadScrapeResult create(DownloadScrapeResult _delegate)
           
 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
 String getStatus()
          returns a string representation of the scrape status
 URL getURL()
          The URL for the tracker
 void setNextScrapeStartTime(long nextScrapeStartTime)
          Sets the next scrape time
 
Methods inherited from class org.gudy.azureus2.pluginsimpl.remote.RPObject
_fixupLocal, _getDelegate, _getName, _getOID, _lookupLocal, _lookupLocal, _refresh, _setRemote, getDispatcher, notSupported, notSupported
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

delegate

protected transient DownloadScrapeResult delegate

seed_count

public int seed_count

non_seed_count

public int non_seed_count
Constructor Detail

RPDownloadScrapeResult

protected RPDownloadScrapeResult(DownloadScrapeResult _delegate)
Method Detail

create

public static RPDownloadScrapeResult create(DownloadScrapeResult _delegate)

_setDelegate

protected void _setDelegate(Object _delegate)
Overrides:
_setDelegate in class RPObject

_setLocal

public Object _setLocal()
                 throws RPException
Overrides:
_setLocal in class RPObject
Throws:
RPException

_process

public RPReply _process(RPRequest request)
Overrides:
_process in class RPObject

getDownload

public Download getDownload()
Description copied from interface: DownloadScrapeResult
Gives access to the associated download

Specified by:
getDownload in interface DownloadScrapeResult
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 interface DownloadScrapeResult
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 interface DownloadScrapeResult
Returns:

getNonSeedCount

public int getNonSeedCount()
Description copied from interface: DownloadScrapeResult
Gives the number of non-seeds returned by the scrape

Specified by:
getNonSeedCount in interface DownloadScrapeResult
Returns:

getScrapeStartTime

public long getScrapeStartTime()
Specified by:
getScrapeStartTime in interface DownloadScrapeResult

setNextScrapeStartTime

public void setNextScrapeStartTime(long nextScrapeStartTime)
Description copied from interface: DownloadScrapeResult
Sets the next scrape time

Specified by:
setNextScrapeStartTime in interface DownloadScrapeResult
Parameters:
nextScrapeStartTime - time to start in milliseconds since epoch

getNextScrapeStartTime

public long getNextScrapeStartTime()
Specified by:
getNextScrapeStartTime in interface DownloadScrapeResult

getStatus

public String getStatus()
Description copied from interface: DownloadScrapeResult
returns a string representation of the scrape status

Specified by:
getStatus in interface DownloadScrapeResult
Returns:

getURL

public URL getURL()
Description copied from interface: DownloadScrapeResult
The URL for the tracker

Specified by:
getURL in interface DownloadScrapeResult
Returns: