org.gudy.azureus2.plugins.utils
Interface ShortCuts

All Known Implementing Classes:
RPShortCuts, ShortCutsImpl

public interface ShortCuts


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
 

Method Detail

getDownload

Download getDownload(byte[] hash)
                     throws DownloadException
A quick way of looking up a download given its hash

Parameters:
hash -
Returns:
Throws:
DownloadException

getDownloadStats

DownloadStats getDownloadStats(byte[] hash)
                               throws DownloadException
A quick way of getting a download's statistics given its hash

Parameters:
hash -
Returns:
Throws:
DownloadException

restartDownload

void restartDownload(byte[] hash)
                     throws DownloadException
A quick way of restarting a download given its hash

Parameters:
hash -
Throws:
DownloadException

stopDownload

void stopDownload(byte[] hash)
                  throws DownloadException
A quick way of stopping a download given its hash

Parameters:
hash -
Throws:
DownloadException

removeDownload

void removeDownload(byte[] hash)
                    throws DownloadException,
                           DownloadRemovalVetoException
A quick way of deleting a download given its hash

Parameters:
hash -
Throws:
DownloadException
DownloadRemovalVetoException