com.aelitis.azureus.plugins.tracker.local
Class LocalTrackerPlugin

java.lang.Object
  extended by 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


Constructor Summary
LocalTrackerPlugin()
           
 
Method Summary
protected  void checkActivation()
           
 void downloadAdded(Download download)
           
 void downloadRemoved(Download download)
           
protected  void forceTrack(Download download)
           
 TrackerPeerSource getTrackerPeerSource(Download download)
           
protected  int handleTrackResult(AZInstanceTracked tracked_inst)
           
 void initialize(PluginInterface _plugin_interface)
          This method is called when the Plugin is loaded by Azureus
 void instanceChanged(AZInstance instance)
           
 void instanceFound(AZInstance instance)
           
 void instanceLost(AZInstance instance)
           
 void instanceTracked(AZInstanceTracked instance)
           
static void load(PluginInterface plugin_interface)
           
 void positionChanged(Download download, int oldPosition, int newPosition)
          Position of download has changed.
protected  void processAutoAdd(java.lang.String autoadd)
           
protected  void processSubNets(java.lang.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 track(Download download)
           
protected  void trackSupport(Download download)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalTrackerPlugin

public LocalTrackerPlugin()
Method Detail

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 changed
oldPosition - position that the download used to be at
newPosition - 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)