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,
String _name,
HashWrapper _hash,
URL _announce_url,
File _data_location,
String _network,
LightWeightSeedAdapter _adapter)
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)