com.aelitis.azureus.core.lws
Class LightWeightSeed
java.lang.Object
org.gudy.azureus2.core3.logging.LogRelation
com.aelitis.azureus.core.lws.LightWeightSeed
- All Implemented Interfaces:
- PeerManagerRegistrationAdapter
public class LightWeightSeed
- extends LogRelation
- implements PeerManagerRegistrationAdapter
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)
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)