com.aelitis.azureus.core.lws
Class LightWeightSeed

java.lang.Object
  extended by org.gudy.azureus2.core3.logging.LogRelation
      extended by com.aelitis.azureus.core.lws.LightWeightSeed
All Implemented Interfaces:
PeerManagerRegistrationAdapter

public class LightWeightSeed
extends LogRelation
implements PeerManagerRegistrationAdapter


Constructor Summary
protected LightWeightSeed(LightWeightSeedManager _manager, String _name, HashWrapper _hash, URL _announce_url, File _data_location, String _network, LightWeightSeedAdapter _adapter)
           
 
Method Summary
protected  void activate(String reason_str, byte activation_reason)
           
 boolean activateRequest(InetSocketAddress remote_address)
           
protected  void checkDeactivation()
           
protected  TRTrackerAnnouncer createAnnouncer()
           
protected  void deactivate()
           
 void deactivateRequest(InetSocketAddress remote_address)
           
 void enqueueReadRequest(PEPeer peer, DiskManagerReadRequest request, DiskManagerReadRequestListener listener)
           
protected  void ensureActive(String reason, byte a_reason)
           
 URL getAnnounceURL()
           
 File getDataLocation()
           
 String getDescription()
           
 HashWrapper getHash()
           
protected  String getName()
           
 String getNetwork()
           
 Object[] getQueryableInterfaces()
          Query this class for a reference to another class that it may hold
 LogRelation getRelation()
           
 String getRelationText()
          A short description of what your class holds that can be printed by the logger
 byte[][] getSecrets()
           
protected  long getSize()
           
protected  String getString()
           
protected  Torrent getTorrent()
           
protected  TOTorrent getTOTorrent(boolean actual)
           
 boolean isPeerSourceEnabled(String peer_source)
           
protected  void log(String str)
           
protected  void log(String str, Throwable e)
           
 boolean manualRoute(NetworkConnection connection)
           
 void remove()
           
protected  void start()
           
protected  void stop()
           
 
Methods inherited from class org.gudy.azureus2.core3.logging.LogRelation
propogatedRelationText, queryForClass, queryForClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LightWeightSeed

protected LightWeightSeed(LightWeightSeedManager _manager,
                          String _name,
                          HashWrapper _hash,
                          URL _announce_url,
                          File _data_location,
                          String _network,
                          LightWeightSeedAdapter _adapter)
Method Detail

getName

protected String getName()

getTorrent

protected Torrent getTorrent()

getTOTorrent

protected TOTorrent getTOTorrent(boolean actual)

getHash

public HashWrapper getHash()

getAnnounceURL

public URL getAnnounceURL()

getDataLocation

public File getDataLocation()

getNetwork

public String getNetwork()

getSize

protected long getSize()

isPeerSourceEnabled

public boolean isPeerSourceEnabled(String peer_source)
Specified by:
isPeerSourceEnabled in interface PeerManagerRegistrationAdapter

manualRoute

public boolean manualRoute(NetworkConnection connection)
Specified by:
manualRoute in interface PeerManagerRegistrationAdapter

getSecrets

public byte[][] getSecrets()
Specified by:
getSecrets in interface PeerManagerRegistrationAdapter

activateRequest

public boolean activateRequest(InetSocketAddress remote_address)
Specified by:
activateRequest in interface PeerManagerRegistrationAdapter

deactivateRequest

public void deactivateRequest(InetSocketAddress remote_address)
Specified by:
deactivateRequest in interface PeerManagerRegistrationAdapter

getDescription

public String getDescription()
Specified by:
getDescription in interface PeerManagerRegistrationAdapter

start

protected void start()

stop

protected void stop()

activate

protected void activate(String reason_str,
                        byte activation_reason)

deactivate

protected void deactivate()

createAnnouncer

protected TRTrackerAnnouncer createAnnouncer()
                                      throws TRTrackerAnnouncerException
Throws:
TRTrackerAnnouncerException

ensureActive

protected void ensureActive(String reason,
                            byte a_reason)

checkDeactivation

protected void checkDeactivation()

enqueueReadRequest

public void enqueueReadRequest(PEPeer peer,
                               DiskManagerReadRequest request,
                               DiskManagerReadRequestListener listener)

remove

public void remove()

getRelationText

public String getRelationText()
Description copied from class: LogRelation
A short description of what your class holds that can be printed by the logger

Overrides:
getRelationText in class LogRelation
Returns:

getQueryableInterfaces

public Object[] getQueryableInterfaces()
Description copied from class: LogRelation
Query this class for a reference to another class that it may hold

Overrides:
getQueryableInterfaces in class LogRelation
Returns:
If found, the class desired. Otherwise, null.

getRelation

public LogRelation getRelation()

getString

protected String getString()

log

protected void log(String str)

log

protected void log(String str,
                   Throwable e)