Package com.biglybt.core.download
Class DownloadManagerStateFactory
java.lang.Object
com.biglybt.core.download.DownloadManagerStateFactory
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addGlobalListener
(DownloadManagerStateAttributeListener l, String attribute, int event_type) static void
deleteDownloadState
(byte[] download_hash, boolean delete_cache) static void
deleteDownloadState
(File source_dir, byte[] download_hash) static void
static Boolean
static int[]
static int[]
getCachedAggregateScrapeSeedsLeechers
(DownloadManagerState state, int max_age_mins) static DownloadManagerState
getDownloadState
(TOTorrent torrent) static Integer
getIntParameterDefault
(String name) static void
importDownloadState
(File source_dir, byte[] download_hash) static void
void
removeGlobalListener
(DownloadManagerStateAttributeListener l, String attribute, int event_type) static void
static void
setDebugOn
(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)
-