Class LightWeightSeed
java.lang.Object
com.biglybt.core.logging.LogRelation
com.biglybt.core.lws.LightWeightSeed
- All Implemented Interfaces:
PeerManagerRegistrationAdapter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final byteprivate static final byteprivate static final byteprivate static final byteprivate static final byteprivate static final byteprivate static final byteprivate static final byteprivate intprivate TOTorrentprivate final LightWeightSeedAdapterprivate final URLprivate TRTrackerAnnouncerprivate final Fileprivate static final intprivate static final intprivate LWSDiskManagerprivate final HashWrapperprivate booleanprivate longprivate final LightWeightSeedManagerprivate final Stringprivate final Stringprivate PEPeerManagerprivate PeerManagerRegistrationprivate LWSDownloadprivate LWSTorrentFields inherited from interface PeerManagerRegistrationAdapter
AT_ACCEPTED, AT_ACCEPTED_PROBE, AT_DECLINED -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLightWeightSeed(LightWeightSeedManager _manager, String _name, HashWrapper _hash, URL _announce_url, File _data_location, String _network, LightWeightSeedAdapter _adapter) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidintactivateRequest(InetSocketAddress remote_address) protected voidprotected TRTrackerAnnouncerprotected voidvoiddeactivateRequest(InetSocketAddress remote_address) voidenqueueReadRequest(PEPeer peer, DiskManagerReadRequest request, DiskManagerReadRequestListener listener) protected voidensureActive(String reason, byte a_reason) intgetHash()byte[]intgetHashOverrideLocalPort(boolean only_if_allocated) protected StringgetName()intprotected intbyte[]Object[]Query this class for a reference to another class that it may holdA short description of what your class holds that can be printed by the loggerbyte[][]protected longgetSize()protected Stringprotected Torrentprotected TOTorrentgetTOTorrent(boolean actual) booleanisPeerSourceEnabled(String peer_source) protected voidprotected voidbooleanmanualRoute(NetworkConnection connection) voidremove()protected voidstart()protected voidstop()Methods inherited from class LogRelation
propogatedRelationText, queryForClass
-
Field Details
-
ACT_NONE
private static final byte ACT_NONE- See Also:
-
ACT_HAS_PEERS
private static final byte ACT_HAS_PEERS- See Also:
-
ACT_HAS_POTENTIAL_PEERS
private static final byte ACT_HAS_POTENTIAL_PEERS- See Also:
-
ACT_INCOMING
private static final byte ACT_INCOMING- See Also:
-
ACT_NO_PM
private static final byte ACT_NO_PM- See Also:
-
ACT_TIMING_OUT
private static final byte ACT_TIMING_OUT- See Also:
-
ACT_TRACKER_ANNOUNCE
private static final byte ACT_TRACKER_ANNOUNCE- See Also:
-
ACT_TRACKER_SCRAPE
private static final byte ACT_TRACKER_SCRAPE- See Also:
-
DEACTIVATION_TIMEOUT
private static final int DEACTIVATION_TIMEOUT- See Also:
-
DEACTIVATION_WITH_POTENTIAL_TIMEOUT
private static final int DEACTIVATION_WITH_POTENTIAL_TIMEOUT- See Also:
-
manager
-
adapter
-
name
-
hash
-
announce_url
-
data_location
-
network
-
peer_manager_registration
-
peer_manager
-
disk_manager
-
pseudo_download
-
torrent_facade
-
announcer
-
actual_torrent
-
is_running
private boolean is_running -
last_activity_time
private long last_activity_time -
activation_state
private int activation_state
-
-
Constructor Details
-
LightWeightSeed
protected LightWeightSeed(LightWeightSeedManager _manager, String _name, HashWrapper _hash, URL _announce_url, File _data_location, String _network, LightWeightSeedAdapter _adapter)
-
-
Method Details
-
getName
-
getTorrent
-
getTOTorrent
-
getHash
-
getHashOverride
public byte[] getHashOverride()- Specified by:
getHashOverridein interfacePeerManagerRegistrationAdapter
-
getPeerID
public byte[] getPeerID()- Specified by:
getPeerIDin interfacePeerManagerRegistrationAdapter
-
getNbPieces
public int getNbPieces()- Specified by:
getNbPiecesin interfacePeerManagerRegistrationAdapter
-
getExtendedMessagingMode
public int getExtendedMessagingMode()- Specified by:
getExtendedMessagingModein interfacePeerManagerRegistrationAdapter
-
getHashOverrideLocalPort
public int getHashOverrideLocalPort(boolean only_if_allocated) - Specified by:
getHashOverrideLocalPortin interfacePeerManagerRegistrationAdapter
-
getAnnounceURL
-
getDataLocation
-
getNetwork
-
getSize
protected long getSize() -
isPeerSourceEnabled
- Specified by:
isPeerSourceEnabledin interfacePeerManagerRegistrationAdapter
-
manualRoute
- Specified by:
manualRoutein interfacePeerManagerRegistrationAdapter
-
getSecrets
public byte[][] getSecrets()- Specified by:
getSecretsin interfacePeerManagerRegistrationAdapter
-
activateRequest
- Specified by:
activateRequestin interfacePeerManagerRegistrationAdapter- Parameters:
remote_address-- Returns:
- one of the AT_ constants
-
deactivateRequest
- Specified by:
deactivateRequestin interfacePeerManagerRegistrationAdapter
-
getDescription
- Specified by:
getDescriptionin interfacePeerManagerRegistrationAdapter
-
start
protected void start() -
getPeerCount
protected int getPeerCount() -
stop
protected void stop() -
activate
-
deactivate
protected void deactivate() -
createAnnouncer
- Throws:
TRTrackerAnnouncerException
-
ensureActive
-
checkDeactivation
protected void checkDeactivation() -
enqueueReadRequest
public void enqueueReadRequest(PEPeer peer, DiskManagerReadRequest request, DiskManagerReadRequestListener listener) -
remove
public void remove() -
getRelationText
Description copied from class:LogRelationA short description of what your class holds that can be printed by the logger- Overrides:
getRelationTextin classLogRelation- Returns:
-
getQueryableInterfaces
Description copied from class:LogRelationQuery this class for a reference to another class that it may hold- Overrides:
getQueryableInterfacesin classLogRelation- Returns:
- If found, the class desired. Otherwise, null.
-
getRelation
-
getString
-
log
-
log
-