Package com.biglybt.pifimpl.remote.utils
Class RPShortCuts
- java.lang.Object
-
- com.biglybt.pifimpl.remote.RPObject
-
- com.biglybt.pifimpl.remote.utils.RPShortCuts
-
- All Implemented Interfaces:
ShortCuts
,java.io.Serializable
public class RPShortCuts extends RPObject implements ShortCuts
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected ShortCuts
delegate
-
Fields inherited from class com.biglybt.pifimpl.remote.RPObject
__delegate, _dispatcher, _object_id, next_key, object_registry, object_registry_reverse
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
RPShortCuts(ShortCuts _delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 hashDownloadStats
getDownloadStats(byte[] hash)
A quick way of getting a download's statistics given its hashvoid
removeDownload(byte[] hash)
A quick way of deleting a download given its hashvoid
restartDownload(byte[] hash)
A quick way of restarting a download given its hashvoid
stopDownload(byte[] hash)
A quick way of stopping a download given its hash-
Methods inherited from class com.biglybt.pifimpl.remote.RPObject
_fixupLocal, _getDelegate, _getName, _getOID, _lookupLocal, _lookupLocal, _refresh, getDispatcher, notSupported, notSupported
-
-
-
-
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 classRPObject
-
_setLocal
public java.lang.Object _setLocal() throws RPException
- Overrides:
_setLocal
in classRPObject
- Throws:
RPException
-
_setRemote
public void _setRemote(RPRequestDispatcher _dispatcher)
- Overrides:
_setRemote
in classRPObject
-
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 interfaceShortCuts
- 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 interfaceShortCuts
- 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 interfaceShortCuts
- 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 interfaceShortCuts
- 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 interfaceShortCuts
- Throws:
DownloadException
-
-