Class LocalTrackerPlugin
java.lang.Object
com.biglybt.plugin.tracker.local.LocalTrackerPlugin
- All Implemented Interfaces:
ClientInstanceManagerListener, DownloadListener, DownloadManagerListener, Plugin
public class LocalTrackerPlugin
extends Object
implements Plugin, ClientInstanceManagerListener, DownloadManagerListener, DownloadListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate static final longprivate longprivate AsyncDispatcherprivate BooleanParameterprivate ClientInstanceManagerprivate Stringprivate Stringprivate LoggerChannelprivate Monitorprivate static final Stringprivate PluginInterfaceprivate static final Stringprivate longprivate static final longprivate TorrentAttributeprivate TorrentAttribute -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoiddownloadAdded(Download download) voiddownloadRemoved(Download download) protected voidforceTrack(Download download) getTrackerPeerSource(Download download) protected inthandleTrackResult(ClientInstanceTracked tracked_inst) voidinitialize(PluginInterface _plugin_interface) This method is called when the Plugin is loaded by the clientvoidinstanceChanged(ClientInstance instance) voidinstanceFound(ClientInstance instance) voidinstanceLost(ClientInstance instance) voidinstanceTracked(ClientInstanceTracked instance) static voidload(PluginInterface plugin_interface) voidpositionChanged(Download download, int oldPosition, int newPosition) Position of download has changed.protected voidprocessAutoAdd(String autoadd) protected voidprocessSubNets(String subnets, boolean include_well_known) voidstateChanged(Download download, int old_state, int new_state) The Download's state has changed.protected voidtrack()protected voidprotected voidtrackSupport(Download download) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Plugin
getInitialProperties
-
Field Details
-
PLUGIN_NAME
- See Also:
-
PLUGIN_CONFIGSECTION_ID
- See Also:
-
ANNOUNCE_PERIOD
private static final long ANNOUNCE_PERIOD- See Also:
-
RE_ANNOUNCE_PERIOD
private static final long RE_ANNOUNCE_PERIOD- See Also:
-
plugin_interface
-
instance_manager
-
active
private boolean active -
ta_networks
-
ta_peer_sources
-
downloads
-
track_times
-
last_autoadd
-
last_subnets
-
enabled
-
plugin_start_time
private long plugin_start_time -
current_time
private long current_time -
log
-
mon
-
dispatcher
-
-
Constructor Details
-
LocalTrackerPlugin
public LocalTrackerPlugin()
-
-
Method Details
-
load
-
initialize
Description copied from interface:PluginThis method is called when the Plugin is loaded by the client- Specified by:
initializein interfacePlugin- Parameters:
_plugin_interface- the interface that the plugin must use to communicate with the client
-
instanceFound
- Specified by:
instanceFoundin interfaceClientInstanceManagerListener
-
checkActivation
protected void checkActivation() -
instanceChanged
- Specified by:
instanceChangedin interfaceClientInstanceManagerListener
-
instanceLost
- Specified by:
instanceLostin interfaceClientInstanceManagerListener
-
instanceTracked
- Specified by:
instanceTrackedin interfaceClientInstanceManagerListener
-
track
protected void track() -
track
-
trackSupport
-
forceTrack
-
handleTrackResult
-
downloadAdded
- Specified by:
downloadAddedin interfaceDownloadManagerListener
-
downloadRemoved
- Specified by:
downloadRemovedin interfaceDownloadManagerListener
-
getTrackerPeerSource
-
stateChanged
Description copied from interface:DownloadListenerThe Download's state has changed. This is also triggered if the user toggles the Force Start on/off.- Specified by:
stateChangedin interfaceDownloadListener
-
positionChanged
Description copied from interface:DownloadListenerPosition of download has changed.- Specified by:
positionChangedin interfaceDownloadListener- Parameters:
download- object in which the position has changedoldPosition- position that the download used to be atnewPosition- position that the download is now at
-
processSubNets
-
processAutoAdd
-