Package com.biglybt.core.download
Class DownloadManagerStateFactory
- java.lang.Object
-
- com.biglybt.core.download.DownloadManagerStateFactory
-
public class DownloadManagerStateFactory extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
MAX_FILES_FOR_INCOMPLETE_AND_DND_LINKAGE
-
Constructor Summary
Constructors Constructor Description DownloadManagerStateFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 java.lang.Boolean
getBooleanParameterDefault(java.lang.String name)
static int[]
getCachedAggregateScrapeSeedsLeechers(DownloadManagerState state)
static int[]
getCachedAggregateScrapeSeedsLeechers(DownloadManagerState state, int max_age_mins)
static DownloadManagerState
getDownloadState(TOTorrent torrent)
static java.lang.Integer
getIntParameterDefault(java.lang.String name)
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()
-
-
-
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)
-
getIntParameterDefault
public static java.lang.Integer getIntParameterDefault(java.lang.String name)
-
getBooleanParameterDefault
public static java.lang.Boolean getBooleanParameterDefault(java.lang.String name)
-
getCachedAggregateScrapeSeedsLeechers
public static int[] getCachedAggregateScrapeSeedsLeechers(DownloadManagerState state)
-
getCachedAggregateScrapeSeedsLeechers
public static int[] getCachedAggregateScrapeSeedsLeechers(DownloadManagerState state, int max_age_mins)
-
-