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, java.lang.String _name, HashWrapper _hash, java.net.URL _announce_url, java.io.File _data_location, java.lang.String _network, LightWeightSeedAdapter _adapter)
           
 
Method Summary
protected  void activate(java.lang.String reason_str, byte activation_reason)
           
 boolean activateRequest(java.net.InetSocketAddress remote_address)
           
protected  void checkDeactivation()
           
protected  TRTrackerAnnouncer createAnnouncer()
           
protected  void deactivate()
           
 void deactivateRequest(java.net.InetSocketAddress remote_address)
           
 void enqueueReadRequest(PEPeer peer, DiskManagerReadRequest request, DiskManagerReadRequestListener listener)
           
protected  void ensureActive(java.lang.String reason, byte a_reason)
           
 java.net.URL getAnnounceURL()
           
 java.io.File getDataLocation()
           
 java.lang.String getDescription()
           
 HashWrapper getHash()
           
protected  java.lang.String getName()
           
 java.lang.String getNetwork()
           
 java.lang.Object[] getQueryableInterfaces()
          Query this class for a reference to another class that it may hold
 LogRelation getRelation()
           
 java.lang.String getRelationText()
          A short description of what your class holds that can be printed by the logger
 byte[][] getSecrets()
           
protected  long getSize()
           
protected  java.lang.String getString()
           
protected  Torrent getTorrent()
           
protected  TOTorrent getTOTorrent(boolean actual)
           
 boolean isPeerSourceEnabled(java.lang.String peer_source)
           
protected  void log(java.lang.String str)
           
protected  void log(java.lang.String str, java.lang.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,
                          java.lang.String _name,
                          HashWrapper _hash,
                          java.net.URL _announce_url,
                          java.io.File _data_location,
                          java.lang.String _network,
                          LightWeightSeedAdapter _adapter)
Method Detail

getName

protected java.lang.String getName()

getTorrent

protected Torrent getTorrent()

getTOTorrent

protected TOTorrent getTOTorrent(boolean actual)

getHash

public HashWrapper getHash()

getAnnounceURL

public java.net.URL getAnnounceURL()

getDataLocation

public java.io.File getDataLocation()

getNetwork

public java.lang.String getNetwork()

getSize

protected long getSize()

isPeerSourceEnabled

public boolean isPeerSourceEnabled(java.lang.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(java.net.InetSocketAddress remote_address)
Specified by:
activateRequest in interface PeerManagerRegistrationAdapter

deactivateRequest

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

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface PeerManagerRegistrationAdapter

start

protected void start()

stop

protected void stop()

activate

protected void activate(java.lang.String reason_str,
                        byte activation_reason)

deactivate

protected void deactivate()

createAnnouncer

protected TRTrackerAnnouncer createAnnouncer()
                                      throws TRTrackerAnnouncerException
Throws:
TRTrackerAnnouncerException

ensureActive

protected void ensureActive(java.lang.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 java.lang.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 java.lang.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 java.lang.String getString()

log

protected void log(java.lang.String str)

log

protected void log(java.lang.String str,
                   java.lang.Throwable e)