|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DownloadManagerState
Field Summary | |
---|---|
static java.lang.String |
AT_AGGREGATE_SCRAPE_CACHE
|
static java.lang.String |
AT_AVAIL_BAD_TIME
|
static java.lang.String |
AT_CANONICAL_SD_DMAP
|
static java.lang.String |
AT_CATEGORY
|
static java.lang.String |
AT_COMPLETE_LAST_TIME
|
static java.lang.String |
AT_DISPLAY_NAME
|
static java.lang.String |
AT_DL_FILE_ALERTS
|
static java.lang.String |
AT_DND_PREFIX
|
static java.lang.String |
AT_DND_SUBFOLDER
|
static java.lang.String |
AT_FILE_DOWNLOADED
|
static java.lang.String |
AT_FILE_LINKS_DEPRECATED
|
static java.lang.String |
AT_FILE_LINKS2
|
static java.lang.String |
AT_FILE_OTHER_HASHES
|
static java.lang.String |
AT_FILE_STORE_TYPES
|
static java.lang.String |
AT_FILES_EXPANDED
|
static java.lang.String |
AT_FLAGS
|
static java.lang.String |
AT_INCOMP_FILE_SUFFIX
|
static java.lang.String |
AT_LAST_ADDED_TO_ACTIVE_TAG
|
static java.lang.String |
AT_MD_INFO_DICT_SIZE
|
static java.lang.String |
AT_MERGED_DATA
|
static java.lang.String |
AT_NETWORKS
|
static java.lang.String |
AT_PARAMETERS
|
static java.lang.String |
AT_PEAK_RECEIVE_RATE
|
static java.lang.String |
AT_PEAK_SEND_RATE
|
static java.lang.String |
AT_PEER_SOURCES
|
static java.lang.String |
AT_PEER_SOURCES_DENIED
|
static java.lang.String |
AT_PRIMARY_FILE
|
static java.lang.String |
AT_PRIMARY_FILE_IDX
|
static java.lang.String |
AT_RELATIVE_SAVE_PATH
|
static java.lang.String |
AT_REORDER_MIN_MB
|
static java.lang.String |
AT_RESUME_STATE
|
static java.lang.String |
AT_SCRAPE_CACHE
|
static java.lang.String |
AT_SCRAPE_CACHE_SOURCE
|
static java.lang.String |
AT_SECRETS
|
static java.lang.String |
AT_SHARE_RATIO_PROGRESS
|
static java.lang.String |
AT_TIME_SINCE_DOWNLOAD
|
static java.lang.String |
AT_TIME_SINCE_UPLOAD
|
static java.lang.String |
AT_TIME_STOPPED
|
static java.lang.String |
AT_TRACKER_CLIENT_EXTENSIONS
|
static java.lang.String |
AT_USER
|
static java.lang.String |
AT_USER_COMMENT
|
static java.lang.String |
AT_VERSION
|
static java.lang.Object[][] |
ATTRIBUTE_DEFAULTS
|
static int |
DEFAULT_MAX_UPLOADS
|
static int |
DEFAULT_UPLOAD_PRIORITY
|
static long |
FLAG_ALLOW_PERMITTED_PEER_SOURCE_CHANGES
|
static long |
FLAG_DISABLE_AUTO_FILE_MOVE
|
static long |
FLAG_DISABLE_IP_FILTER
|
static long |
FLAG_DO_NOT_DELETE_DATA_ON_REMOVE
|
static long |
FLAG_ERROR_REPORTED
|
static long |
FLAG_FORCE_DIRECT_DELETE
|
static long |
FLAG_INITIAL_NETWORKS_SET
|
static long |
FLAG_LOW_NOISE
|
static long |
FLAG_METADATA_DOWNLOAD
|
static long |
FLAG_MOVE_ON_COMPLETION_DONE
|
static long |
FLAG_ONLY_EVER_SEEDED
|
static long |
FLAG_SCAN_INCOMPLETE_PIECES
|
static int |
MIN_MAX_UPLOADS
|
static java.lang.String |
PARAM_DND_FLAGS
|
static java.lang.String |
PARAM_DOWNLOAD_ADDED_TIME
|
static java.lang.String |
PARAM_DOWNLOAD_COMPLETED_TIME
|
static java.lang.String |
PARAM_DOWNLOAD_FILE_COMPLETED_TIME
|
static java.lang.String |
PARAM_DOWNLOAD_LAST_ACTIVE_TIME
|
static java.lang.String |
PARAM_MAX_PEERS
|
static java.lang.String |
PARAM_MAX_PEERS_WHEN_SEEDING
|
static java.lang.String |
PARAM_MAX_PEERS_WHEN_SEEDING_ENABLED
|
static java.lang.String |
PARAM_MAX_SEEDS
|
static java.lang.String |
PARAM_MAX_SHARE_RATIO
|
static java.lang.String |
PARAM_MAX_UPLOAD_WHEN_BUSY
|
static java.lang.String |
PARAM_MAX_UPLOADS
|
static java.lang.String |
PARAM_MAX_UPLOADS_WHEN_SEEDING
|
static java.lang.String |
PARAM_MAX_UPLOADS_WHEN_SEEDING_ENABLED
|
static java.lang.String |
PARAM_MIN_SHARE_RATIO
|
static java.lang.String |
PARAM_RANDOM_SEED
|
static java.lang.String |
PARAM_STATS_COUNTED
|
static java.lang.String |
PARAM_UPLOAD_PRIORITY
|
static java.lang.Object[][] |
PARAMETERS
|
Method Summary | |
---|---|
void |
addListener(DownloadManagerStateAttributeListener l,
java.lang.String attribute,
int event_type)
|
void |
addListener(DownloadManagerStateListener l)
|
void |
clearFileLinks()
|
void |
clearResumeData()
|
void |
clearTrackerResponseCache()
|
void |
delete()
deletes the saved state |
void |
discardFluff()
|
void |
dump(IndentWriter writer)
|
boolean |
exportState(java.io.File target_dir)
|
void |
generateEvidence(IndentWriter writer)
|
java.lang.String |
getAttribute(java.lang.String name)
|
boolean |
getBooleanAttribute(java.lang.String name)
|
boolean |
getBooleanParameter(java.lang.String name)
|
Category |
getCategory()
|
java.lang.String |
getDisplayName()
|
DownloadManager |
getDownloadManager()
|
java.io.File |
getFileLink(int source_index,
java.io.File link_source)
|
LinkFileMap |
getFileLinks()
returns a File -> File map of the defined links (empty if no links) |
boolean |
getFlag(long flag)
|
long |
getFlags()
|
int |
getIntAttribute(java.lang.String name)
|
int |
getIntParameter(java.lang.String name)
|
java.lang.String[] |
getListAttribute(java.lang.String name)
|
java.lang.String |
getListAttribute(java.lang.String name,
int idx)
|
long |
getLongAttribute(java.lang.String name)
|
long |
getLongParameter(java.lang.String name)
|
java.util.Map |
getMapAttribute(java.lang.String name)
|
java.lang.String[] |
getNetworks()
|
java.lang.String[] |
getPeerSources()
|
DiskManagerFileInfo |
getPrimaryFile()
|
java.lang.String |
getRelativeSavePath()
|
java.util.Map |
getResumeData()
|
java.io.File |
getStateFile()
|
TOTorrent |
getTorrent()
|
java.lang.String |
getTrackerClientExtensions()
|
java.util.Map |
getTrackerResponseCache()
|
java.lang.String |
getUserComment()
|
boolean |
hasAttribute(java.lang.String name)
|
boolean |
isNetworkEnabled(java.lang.String network)
|
boolean |
isOurContent()
|
boolean |
isPeerSourceEnabled(java.lang.String peerSource)
|
boolean |
isPeerSourcePermitted(java.lang.String peerSource)
|
boolean |
isResumeDataComplete()
|
boolean |
parameterExists(java.lang.String name)
|
void |
removeListener(DownloadManagerStateAttributeListener l,
java.lang.String attribute,
int event_type)
|
void |
removeListener(DownloadManagerStateListener l)
|
void |
save()
|
void |
setActive(boolean active)
|
void |
setAttribute(java.lang.String name,
java.lang.String value)
|
void |
setBooleanAttribute(java.lang.String name,
boolean value)
|
void |
setBooleanParameter(java.lang.String name,
boolean value)
|
void |
setCategory(Category cat)
|
void |
setDisplayName(java.lang.String name)
|
void |
setFileLink(int source_index,
java.io.File link_source,
java.io.File link_destination)
|
void |
setFileLinks(java.util.List<java.lang.Integer> source_indexes,
java.util.List<java.io.File> link_sources,
java.util.List<java.io.File> link_destinations)
|
void |
setFlag(long flag,
boolean set)
|
void |
setIntAttribute(java.lang.String name,
int value)
|
void |
setIntParameter(java.lang.String name,
int value)
|
void |
setListAttribute(java.lang.String name,
java.lang.String[] values)
|
void |
setLongAttribute(java.lang.String name,
long value)
|
void |
setLongParameter(java.lang.String name,
long value)
|
void |
setMapAttribute(java.lang.String name,
java.util.Map value)
|
void |
setNetworkEnabled(java.lang.String network,
boolean enabled)
|
void |
setNetworks(java.lang.String[] networks)
|
void |
setParameterDefault(java.lang.String name)
Reset to default value |
void |
setPeerSourceEnabled(java.lang.String source,
boolean enabled)
|
void |
setPeerSourcePermitted(java.lang.String peerSource,
boolean permitted)
|
void |
setPeerSources(java.lang.String[] sources)
|
void |
setPrimaryFile(DiskManagerFileInfo dmfi)
|
void |
setResumeData(java.util.Map data)
|
void |
setTrackerClientExtensions(java.lang.String value)
|
void |
setTrackerResponseCache(java.util.Map value)
|
void |
setUserComment(java.lang.String name)
|
void |
suppressStateSave(boolean suppress)
This method should only be invoked in matching try-finally pairs. |
Field Detail |
---|
static final java.lang.String AT_VERSION
static final java.lang.String AT_CATEGORY
static final java.lang.String AT_NETWORKS
static final java.lang.String AT_USER
static final java.lang.String AT_PEER_SOURCES
static final java.lang.String AT_PEER_SOURCES_DENIED
static final java.lang.String AT_TRACKER_CLIENT_EXTENSIONS
static final java.lang.String AT_FILE_LINKS_DEPRECATED
static final java.lang.String AT_FILE_LINKS2
static final java.lang.String AT_FILE_STORE_TYPES
static final java.lang.String AT_FILE_DOWNLOADED
static final java.lang.String AT_FLAGS
static final java.lang.String AT_PARAMETERS
static final java.lang.String AT_DISPLAY_NAME
static final java.lang.String AT_USER_COMMENT
static final java.lang.String AT_RELATIVE_SAVE_PATH
static final java.lang.String AT_SECRETS
static final java.lang.String AT_RESUME_STATE
static final java.lang.String AT_PRIMARY_FILE
static final java.lang.String AT_PRIMARY_FILE_IDX
static final java.lang.String AT_TIME_SINCE_DOWNLOAD
static final java.lang.String AT_TIME_SINCE_UPLOAD
static final java.lang.String AT_AVAIL_BAD_TIME
static final java.lang.String AT_TIME_STOPPED
static final java.lang.String AT_INCOMP_FILE_SUFFIX
static final java.lang.String AT_SCRAPE_CACHE
static final java.lang.String AT_SCRAPE_CACHE_SOURCE
static final java.lang.String AT_REORDER_MIN_MB
static final java.lang.String AT_MD_INFO_DICT_SIZE
static final java.lang.String AT_FILE_OTHER_HASHES
static final java.lang.String AT_CANONICAL_SD_DMAP
static final java.lang.String AT_DND_SUBFOLDER
static final java.lang.String AT_PEAK_RECEIVE_RATE
static final java.lang.String AT_PEAK_SEND_RATE
static final java.lang.String AT_DL_FILE_ALERTS
static final java.lang.String AT_SHARE_RATIO_PROGRESS
static final java.lang.String AT_FILES_EXPANDED
static final java.lang.String AT_MERGED_DATA
static final java.lang.String AT_DND_PREFIX
static final java.lang.String AT_AGGREGATE_SCRAPE_CACHE
static final java.lang.String AT_COMPLETE_LAST_TIME
static final java.lang.String AT_LAST_ADDED_TO_ACTIVE_TAG
static final java.lang.Object[][] ATTRIBUTE_DEFAULTS
static final long FLAG_ONLY_EVER_SEEDED
static final long FLAG_SCAN_INCOMPLETE_PIECES
static final long FLAG_DISABLE_AUTO_FILE_MOVE
static final long FLAG_MOVE_ON_COMPLETION_DONE
static final long FLAG_LOW_NOISE
static final long FLAG_ALLOW_PERMITTED_PEER_SOURCE_CHANGES
static final long FLAG_DO_NOT_DELETE_DATA_ON_REMOVE
static final long FLAG_FORCE_DIRECT_DELETE
static final long FLAG_DISABLE_IP_FILTER
static final long FLAG_METADATA_DOWNLOAD
static final long FLAG_ERROR_REPORTED
static final long FLAG_INITIAL_NETWORKS_SET
static final java.lang.String PARAM_MAX_PEERS
static final java.lang.String PARAM_MAX_PEERS_WHEN_SEEDING
static final java.lang.String PARAM_MAX_PEERS_WHEN_SEEDING_ENABLED
static final java.lang.String PARAM_MAX_SEEDS
static final java.lang.String PARAM_MAX_UPLOADS
static final java.lang.String PARAM_MAX_UPLOADS_WHEN_SEEDING
static final java.lang.String PARAM_MAX_UPLOADS_WHEN_SEEDING_ENABLED
static final java.lang.String PARAM_STATS_COUNTED
static final java.lang.String PARAM_DOWNLOAD_ADDED_TIME
static final java.lang.String PARAM_DOWNLOAD_COMPLETED_TIME
static final java.lang.String PARAM_DOWNLOAD_FILE_COMPLETED_TIME
static final java.lang.String PARAM_DOWNLOAD_LAST_ACTIVE_TIME
static final java.lang.String PARAM_MAX_UPLOAD_WHEN_BUSY
static final java.lang.String PARAM_DND_FLAGS
static final java.lang.String PARAM_RANDOM_SEED
static final java.lang.String PARAM_UPLOAD_PRIORITY
static final java.lang.String PARAM_MIN_SHARE_RATIO
static final java.lang.String PARAM_MAX_SHARE_RATIO
static final int DEFAULT_MAX_UPLOADS
static final int MIN_MAX_UPLOADS
static final int DEFAULT_UPLOAD_PRIORITY
static final java.lang.Object[][] PARAMETERS
Method Detail |
---|
TOTorrent getTorrent()
DownloadManager getDownloadManager()
java.io.File getStateFile()
void setFlag(long flag, boolean set)
boolean getFlag(long flag)
long getFlags()
void setParameterDefault(java.lang.String name)
name
- int getIntParameter(java.lang.String name)
void setIntParameter(java.lang.String name, int value)
long getLongParameter(java.lang.String name)
void setLongParameter(java.lang.String name, long value)
boolean getBooleanParameter(java.lang.String name)
void setBooleanParameter(java.lang.String name, boolean value)
void clearResumeData()
java.util.Map getResumeData()
void setResumeData(java.util.Map data)
boolean isResumeDataComplete()
void clearTrackerResponseCache()
java.util.Map getTrackerResponseCache()
void setTrackerResponseCache(java.util.Map value)
Category getCategory()
void setCategory(Category cat)
java.lang.String getDisplayName()
void setDisplayName(java.lang.String name)
java.lang.String getUserComment()
void setUserComment(java.lang.String name)
java.lang.String getRelativeSavePath()
void setPrimaryFile(DiskManagerFileInfo dmfi)
DiskManagerFileInfo getPrimaryFile()
java.lang.String getTrackerClientExtensions()
void setTrackerClientExtensions(java.lang.String value)
java.lang.String[] getNetworks()
boolean isNetworkEnabled(java.lang.String network)
void setNetworks(java.lang.String[] networks)
void setNetworkEnabled(java.lang.String network, boolean enabled)
java.lang.String[] getPeerSources()
boolean isPeerSourcePermitted(java.lang.String peerSource)
void setPeerSourcePermitted(java.lang.String peerSource, boolean permitted)
boolean isPeerSourceEnabled(java.lang.String peerSource)
void setPeerSources(java.lang.String[] sources)
void setPeerSourceEnabled(java.lang.String source, boolean enabled)
void setFileLink(int source_index, java.io.File link_source, java.io.File link_destination)
void setFileLinks(java.util.List<java.lang.Integer> source_indexes, java.util.List<java.io.File> link_sources, java.util.List<java.io.File> link_destinations)
void clearFileLinks()
java.io.File getFileLink(int source_index, java.io.File link_source)
LinkFileMap getFileLinks()
boolean isOurContent()
void setAttribute(java.lang.String name, java.lang.String value)
java.lang.String getAttribute(java.lang.String name)
void setMapAttribute(java.lang.String name, java.util.Map value)
java.util.Map getMapAttribute(java.lang.String name)
void setListAttribute(java.lang.String name, java.lang.String[] values)
java.lang.String[] getListAttribute(java.lang.String name)
java.lang.String getListAttribute(java.lang.String name, int idx)
void setIntAttribute(java.lang.String name, int value)
int getIntAttribute(java.lang.String name)
void setLongAttribute(java.lang.String name, long value)
long getLongAttribute(java.lang.String name)
void setBooleanAttribute(java.lang.String name, boolean value)
boolean getBooleanAttribute(java.lang.String name)
boolean hasAttribute(java.lang.String name)
void setActive(boolean active)
void discardFluff()
void save()
boolean exportState(java.io.File target_dir)
void delete()
void addListener(DownloadManagerStateListener l)
void removeListener(DownloadManagerStateListener l)
boolean parameterExists(java.lang.String name)
name
-
void generateEvidence(IndentWriter writer)
void dump(IndentWriter writer)
void suppressStateSave(boolean suppress)
suppress
- when set to true prevents flushing of the state/increments the internal nesting
counter, decrements/allows flush otherwisevoid addListener(DownloadManagerStateAttributeListener l, java.lang.String attribute, int event_type)
void removeListener(DownloadManagerStateAttributeListener l, java.lang.String attribute, int event_type)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |