org.gudy.azureus2.pluginsimpl.local.utils
Class ShortCutsImpl

java.lang.Object
  extended by org.gudy.azureus2.pluginsimpl.local.utils.ShortCutsImpl
All Implemented Interfaces:
ShortCuts

public class ShortCutsImpl
extends java.lang.Object
implements ShortCuts


Field Summary
protected  PluginInterface pi
           
 
Constructor Summary
ShortCutsImpl(PluginInterface _pi)
           
 
Method Summary
 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pi

protected PluginInterface pi
Constructor Detail

ShortCutsImpl

public ShortCutsImpl(PluginInterface _pi)
Method Detail

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,
                           DownloadRemovalVetoException
Description copied from interface: ShortCuts
A quick way of deleting a download given its hash

Specified by:
removeDownload in interface ShortCuts
Throws:
DownloadException
DownloadRemovalVetoException

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