org.gudy.azureus2.pluginsimpl.remote.utils
Class RPShortCuts

java.lang.Object
  extended by org.gudy.azureus2.pluginsimpl.remote.RPObject
      extended by org.gudy.azureus2.pluginsimpl.remote.utils.RPShortCuts
All Implemented Interfaces:
java.io.Serializable, ShortCuts

public class RPShortCuts
extends RPObject
implements ShortCuts

See Also:
Serialized Form

Field Summary
protected  ShortCuts delegate
           
 
Fields inherited from class org.gudy.azureus2.pluginsimpl.remote.RPObject
__delegate, _dispatcher, _object_id, next_key, object_registry, object_registry_reverse
 
Constructor Summary
protected RPShortCuts(ShortCuts _delegate)
           
 
Method Summary
 RPReply _process(RPRequest request)
           
protected  void _setDelegate(java.lang.Object _delegate)
           
 java.lang.Object _setLocal()
           
 void _setRemote(RPRequestDispatcher _dispatcher)
           
static RPShortCuts create(ShortCuts _delegate)
           
 Download getDownload(byte[] hash)
          A quick way of looking up a download given its hash
 DownloadStats getDownloadStats(byte[] hash)
          A quick way of getting a download's statistics given its hash
 void removeDownload(byte[] hash)
          A quick way of deleting a download given its hash
 void restartDownload(byte[] hash)
          A quick way of restarting a download given its hash
 void stopDownload(byte[] hash)
          A quick way of stopping a download given its hash
 
Methods inherited from class org.gudy.azureus2.pluginsimpl.remote.RPObject
_fixupLocal, _getDelegate, _getName, _getOID, _lookupLocal, _lookupLocal, _refresh, 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 ShortCuts delegate
Constructor Detail

RPShortCuts

protected RPShortCuts(ShortCuts _delegate)
Method Detail

create

public static RPShortCuts create(ShortCuts _delegate)

_setDelegate

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

_setLocal

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

_setRemote

public void _setRemote(RPRequestDispatcher _dispatcher)
Overrides:
_setRemote in class RPObject

_process

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

getDownload

public Download getDownload(byte[] hash)
                     throws DownloadException
Description copied from interface: ShortCuts
A quick way of looking up a download given its hash

Specified by:
getDownload in interface ShortCuts
Returns:
Throws:
DownloadException

getDownloadStats

public DownloadStats getDownloadStats(byte[] hash)
                               throws DownloadException
Description copied from interface: ShortCuts
A quick way of getting a download's statistics given its hash

Specified by:
getDownloadStats in interface ShortCuts
Returns:
Throws:
DownloadException

restartDownload

public void restartDownload(byte[] hash)
                     throws DownloadException
Description copied from interface: ShortCuts
A quick way of restarting a download given its hash

Specified by:
restartDownload in interface ShortCuts
Throws:
DownloadException

stopDownload

public void stopDownload(byte[] hash)
                  throws DownloadException
Description copied from interface: ShortCuts
A quick way of stopping a download given its hash

Specified by:
stopDownload in interface ShortCuts
Throws:
DownloadException

removeDownload

public void removeDownload(byte[] hash)
                    throws DownloadException
Description copied from interface: ShortCuts
A quick way of deleting a download given its hash

Specified by:
removeDownload in interface ShortCuts
Throws:
DownloadException