org.gudy.azureus2.core3.download
Class DownloadManagerStateFactory
java.lang.Object
org.gudy.azureus2.core3.download.DownloadManagerStateFactory
public class DownloadManagerStateFactory
- extends java.lang.Object
- Author:
- parg
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAX_FILES_FOR_INCOMPLETE_AND_DND_LINKAGE
public static int MAX_FILES_FOR_INCOMPLETE_AND_DND_LINKAGE
DownloadManagerStateFactory
public DownloadManagerStateFactory()
getDownloadState
public static DownloadManagerState getDownloadState(TOTorrent torrent)
throws TOTorrentException
- Throws:
TOTorrentException
loadGlobalStateCache
public static void loadGlobalStateCache()
saveGlobalStateCache
public static void saveGlobalStateCache()
discardGlobalStateCache
public static void discardGlobalStateCache()
importDownloadState
public static void importDownloadState(java.io.File source_dir,
byte[] download_hash)
throws DownloadManagerException
- Throws:
DownloadManagerException
deleteDownloadState
public static void deleteDownloadState(byte[] download_hash)
throws DownloadManagerException
- Throws:
DownloadManagerException
deleteDownloadState
public static void deleteDownloadState(java.io.File source_dir,
byte[] download_hash)
throws DownloadManagerException
- Throws:
DownloadManagerException
addGlobalListener
public static void addGlobalListener(DownloadManagerStateAttributeListener l,
java.lang.String attribute,
int event_type)
removeGlobalListener
public void removeGlobalListener(DownloadManagerStateAttributeListener l,
java.lang.String attribute,
int event_type)