Class MagnetPluginMDDownloader
java.lang.Object
com.biglybt.plugin.magnet.MagnetPluginMDDownloader
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classprotected static interface -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Object(package private) final MagnetPluginMDDownloader.DownloadActivityprivate final InetSocketAddress[]private final Stringprivate booleanprivate AESemaphoreprivate booleanprivate DownloadManagerprivate final byte[]private static byte[]private final Objectprivate static final ThreadLocal<Boolean> private booleanprivate final MagnetPluginprivate final PluginInterfaceprivate List<DiskManagerRequest> private booleanprivate booleanprivate static final Object -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMagnetPluginMDDownloader(MagnetPlugin _plugin, PluginInterface _plugin_interface, byte[] _hash, Set<String> _networks, InetSocketAddress[] _addresses, List<String> _tags, Map<String, Object> _initial_metadata, String _args) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancancel()protected DownloadManagerprotected static booleanisMagnetThumbnail(byte[] bytes) (package private) voidsetNetworkEnabled(DownloadManagerState state, String network, boolean enabled) protected void
-
Field Details
-
STARTUP_LOCK
-
ACTIVE_SET_LOCK
-
active_set
-
networks_changing
-
icon_bytes
private static byte[] icon_bytes -
INSTANCE_LOCK
-
plugin_interface
-
plugin
-
hash
private final byte[] hash -
networks
-
addresses
-
tags
-
initial_metadata
-
args
-
activity
-
core_dm
-
started
private volatile boolean started -
cancelled
private volatile boolean cancelled -
completed
private volatile boolean completed -
requests
-
run_complete
private boolean run_complete -
complete_sem
-
networks_set_externally
private volatile boolean networks_set_externally
-
-
Constructor Details
-
MagnetPluginMDDownloader
protected MagnetPluginMDDownloader(MagnetPlugin _plugin, PluginInterface _plugin_interface, byte[] _hash, Set<String> _networks, InetSocketAddress[] _addresses, List<String> _tags, Map<String, Object> _initial_metadata, String _args)
-
-
Method Details
-
isMagnetThumbnail
protected static boolean isMagnetThumbnail(byte[] bytes) -
start
-
cancel
protected boolean cancel() -
getDownloadManager
-
setNetworkEnabled
-
getExplicitNetworks
-