com.aelitis.azureus.plugins.tracker.local
Class LocalTrackerPlugin
java.lang.Object
com.aelitis.azureus.plugins.tracker.local.LocalTrackerPlugin
- All Implemented Interfaces:
- AZInstanceManagerListener, DownloadListener, DownloadManagerListener, Plugin
public class LocalTrackerPlugin
- extends java.lang.Object
- implements Plugin, AZInstanceManagerListener, DownloadManagerListener, DownloadListener
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocalTrackerPlugin
public LocalTrackerPlugin()
load
public static void load(PluginInterface plugin_interface)
initialize
public void initialize(PluginInterface _plugin_interface)
- Description copied from interface:
Plugin
- This method is called when the Plugin is loaded by Azureus
- Specified by:
initialize
in interface Plugin
- Parameters:
_plugin_interface
- the interface that the plugin must use to communicate with Azureus
instanceFound
public void instanceFound(AZInstance instance)
- Specified by:
instanceFound
in interface AZInstanceManagerListener
checkActivation
protected void checkActivation()
instanceChanged
public void instanceChanged(AZInstance instance)
- Specified by:
instanceChanged
in interface AZInstanceManagerListener
instanceLost
public void instanceLost(AZInstance instance)
- Specified by:
instanceLost
in interface AZInstanceManagerListener
instanceTracked
public void instanceTracked(AZInstanceTracked instance)
- Specified by:
instanceTracked
in interface AZInstanceManagerListener
track
protected void track()
track
protected void track(Download download)
trackSupport
protected void trackSupport(Download download)
forceTrack
protected void forceTrack(Download download)
handleTrackResult
protected int handleTrackResult(AZInstanceTracked tracked_inst)
downloadAdded
public void downloadAdded(Download download)
- Specified by:
downloadAdded
in interface DownloadManagerListener
downloadRemoved
public void downloadRemoved(Download download)
- Specified by:
downloadRemoved
in interface DownloadManagerListener
getTrackerPeerSource
public TrackerPeerSource getTrackerPeerSource(Download download)
stateChanged
public void stateChanged(Download download,
int old_state,
int new_state)
- 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 interface DownloadListener
positionChanged
public void positionChanged(Download download,
int oldPosition,
int newPosition)
- Description copied from interface:
DownloadListener
- Position of download has changed.
- Specified by:
positionChanged
in interface DownloadListener
- 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
protected void processSubNets(java.lang.String subnets,
boolean include_well_known)
processAutoAdd
protected void processAutoAdd(java.lang.String autoadd)