Package com.biglybt.plugin.tracker.local
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 boolean
private static final long
private long
private AsyncDispatcher
private BooleanParameter
private ClientInstanceManager
private String
private String
private LoggerChannel
private Monitor
private static final String
private PluginInterface
private static final String
private long
private static final long
private TorrentAttribute
private TorrentAttribute
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
downloadAdded
(Download download) void
downloadRemoved
(Download download) protected void
forceTrack
(Download download) getTrackerPeerSource
(Download download) protected int
handleTrackResult
(ClientInstanceTracked tracked_inst) void
initialize
(PluginInterface _plugin_interface) This method is called when the Plugin is loaded by the clientvoid
instanceChanged
(ClientInstance instance) void
instanceFound
(ClientInstance instance) void
instanceLost
(ClientInstance instance) void
instanceTracked
(ClientInstanceTracked instance) static void
load
(PluginInterface plugin_interface) void
positionChanged
(Download download, int oldPosition, int newPosition) Position of download has changed.protected void
processAutoAdd
(String autoadd) protected void
processSubNets
(String subnets, boolean include_well_known) void
stateChanged
(Download download, int old_state, int new_state) The Download's state has changed.protected void
track()
protected void
protected void
trackSupport
(Download download) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.biglybt.pif.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:Plugin
This method is called when the Plugin is loaded by the client- Specified by:
initialize
in interfacePlugin
- Parameters:
_plugin_interface
- the interface that the plugin must use to communicate with the client
-
instanceFound
- Specified by:
instanceFound
in interfaceClientInstanceManagerListener
-
checkActivation
protected void checkActivation() -
instanceChanged
- Specified by:
instanceChanged
in interfaceClientInstanceManagerListener
-
instanceLost
- Specified by:
instanceLost
in interfaceClientInstanceManagerListener
-
instanceTracked
- Specified by:
instanceTracked
in interfaceClientInstanceManagerListener
-
track
protected void track() -
track
-
trackSupport
-
forceTrack
-
handleTrackResult
-
downloadAdded
- Specified by:
downloadAdded
in interfaceDownloadManagerListener
-
downloadRemoved
- Specified by:
downloadRemoved
in interfaceDownloadManagerListener
-
getTrackerPeerSource
-
stateChanged
Description copied from interface:DownloadListener
The Download's state has changed. This is also triggered if the user toggles the Force Start on/off.- Specified by:
stateChanged
in interfaceDownloadListener
-
positionChanged
Description copied from interface:DownloadListener
Position of download has changed.- Specified by:
positionChanged
in 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
-