org.gudy.azureus2.core3.download
Class DownloadManagerStateFactory

java.lang.Object
  extended by org.gudy.azureus2.core3.download.DownloadManagerStateFactory

public class DownloadManagerStateFactory
extends java.lang.Object

Author:
parg

Field Summary
static int MAX_FILES_FOR_INCOMPLETE_AND_DND_LINKAGE
           
 
Constructor Summary
DownloadManagerStateFactory()
           
 
Method Summary
static void addGlobalListener(DownloadManagerStateAttributeListener l, java.lang.String attribute, int event_type)
           
static void deleteDownloadState(byte[] download_hash)
           
static void deleteDownloadState(java.io.File source_dir, byte[] download_hash)
           
static void discardGlobalStateCache()
           
static DownloadManagerState getDownloadState(TOTorrent torrent)
           
static void importDownloadState(java.io.File source_dir, byte[] download_hash)
           
static void loadGlobalStateCache()
           
 void removeGlobalListener(DownloadManagerStateAttributeListener l, java.lang.String attribute, int event_type)
           
static void saveGlobalStateCache()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_FILES_FOR_INCOMPLETE_AND_DND_LINKAGE

public static int MAX_FILES_FOR_INCOMPLETE_AND_DND_LINKAGE
Constructor Detail

DownloadManagerStateFactory

public DownloadManagerStateFactory()
Method Detail

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)