Class DownloadManagerStateFactory
java.lang.Object
com.biglybt.core.download.DownloadManagerStateFactory
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddGlobalListener(DownloadManagerStateAttributeListener l, String attribute, int event_type) static voiddeleteDownloadState(byte[] download_hash, boolean delete_cache) static voiddeleteDownloadState(File source_dir, byte[] download_hash) static voidstatic Booleanstatic int[]static int[]getCachedAggregateScrapeSeedsLeechers(DownloadManagerState state, int max_age_mins) static DownloadManagerStategetDownloadState(TOTorrent torrent) static IntegergetIntParameterDefault(String name) static voidimportDownloadState(File source_dir, byte[] download_hash) static voidvoidremoveGlobalListener(DownloadManagerStateAttributeListener l, String attribute, int event_type) static voidstatic voidsetDebugOn(boolean on)
-
Field Details
-
MAX_FILES_FOR_INCOMPLETE_AND_DND_LINKAGE
public static int MAX_FILES_FOR_INCOMPLETE_AND_DND_LINKAGE
-
-
Constructor Details
-
DownloadManagerStateFactory
public DownloadManagerStateFactory()
-
-
Method Details
-
getDownloadState
- Throws:
TOTorrentException
-
loadGlobalStateCache
public static void loadGlobalStateCache() -
saveGlobalStateCache
public static void saveGlobalStateCache() -
discardGlobalStateCache
public static void discardGlobalStateCache() -
importDownloadState
public static void importDownloadState(File source_dir, byte[] download_hash) throws DownloadManagerException - Throws:
DownloadManagerException
-
deleteDownloadState
public static void deleteDownloadState(byte[] download_hash, boolean delete_cache) throws DownloadManagerException - Throws:
DownloadManagerException
-
deleteDownloadState
public static void deleteDownloadState(File source_dir, byte[] download_hash) throws DownloadManagerException - Throws:
DownloadManagerException
-
addGlobalListener
public static void addGlobalListener(DownloadManagerStateAttributeListener l, String attribute, int event_type) -
removeGlobalListener
public void removeGlobalListener(DownloadManagerStateAttributeListener l, String attribute, int event_type) -
getIntParameterDefault
-
getBooleanParameterDefault
-
getCachedAggregateScrapeSeedsLeechers
-
getCachedAggregateScrapeSeedsLeechers
public static int[] getCachedAggregateScrapeSeedsLeechers(DownloadManagerState state, int max_age_mins) -
setDebugOn
public static void setDebugOn(boolean on)
-