Package com.biglybt.core.lws
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 byte
private static final byte
private static final byte
private static final byte
private static final byte
private static final byte
private static final byte
private static final byte
private int
private TOTorrent
private final LightWeightSeedAdapter
private final URL
private TRTrackerAnnouncer
private final File
private static final int
private static final int
private LWSDiskManager
private final HashWrapper
private boolean
private long
private final LightWeightSeedManager
private final String
private final String
private PEPeerManager
private PeerManagerRegistration
private LWSDownload
private LWSTorrent
Fields inherited from interface com.biglybt.core.peermanager.PeerManagerRegistrationAdapter
AT_ACCEPTED, AT_ACCEPTED_PROBE, AT_DECLINED
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
LightWeightSeed
(LightWeightSeedManager _manager, String _name, HashWrapper _hash, URL _announce_url, File _data_location, String _network, LightWeightSeedAdapter _adapter) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
int
activateRequest
(InetSocketAddress remote_address) protected void
protected TRTrackerAnnouncer
protected void
void
deactivateRequest
(InetSocketAddress remote_address) void
enqueueReadRequest
(PEPeer peer, DiskManagerReadRequest request, DiskManagerReadRequestListener listener) protected void
ensureActive
(String reason, byte a_reason) int
getHash()
byte[]
int
getHashOverrideLocalPort
(boolean only_if_allocated) protected String
getName()
int
protected int
byte[]
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 long
getSize()
protected String
protected Torrent
protected TOTorrent
getTOTorrent
(boolean actual) boolean
isPeerSourceEnabled
(String peer_source) protected void
protected void
boolean
manualRoute
(NetworkConnection connection) void
remove()
protected void
start()
protected void
stop()
Methods inherited from class com.biglybt.core.logging.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:
getHashOverride
in interfacePeerManagerRegistrationAdapter
-
getPeerID
public byte[] getPeerID()- Specified by:
getPeerID
in interfacePeerManagerRegistrationAdapter
-
getNbPieces
public int getNbPieces()- Specified by:
getNbPieces
in interfacePeerManagerRegistrationAdapter
-
getExtendedMessagingMode
public int getExtendedMessagingMode()- Specified by:
getExtendedMessagingMode
in interfacePeerManagerRegistrationAdapter
-
getHashOverrideLocalPort
public int getHashOverrideLocalPort(boolean only_if_allocated) - Specified by:
getHashOverrideLocalPort
in interfacePeerManagerRegistrationAdapter
-
getAnnounceURL
-
getDataLocation
-
getNetwork
-
getSize
protected long getSize() -
isPeerSourceEnabled
- Specified by:
isPeerSourceEnabled
in interfacePeerManagerRegistrationAdapter
-
manualRoute
- Specified by:
manualRoute
in interfacePeerManagerRegistrationAdapter
-
getSecrets
public byte[][] getSecrets()- Specified by:
getSecrets
in interfacePeerManagerRegistrationAdapter
-
activateRequest
- Specified by:
activateRequest
in interfacePeerManagerRegistrationAdapter
- Parameters:
remote_address
-- Returns:
- one of the AT_ constants
-
deactivateRequest
- Specified by:
deactivateRequest
in interfacePeerManagerRegistrationAdapter
-
getDescription
- Specified by:
getDescription
in 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:LogRelation
A short description of what your class holds that can be printed by the logger- Overrides:
getRelationText
in classLogRelation
- Returns:
-
getQueryableInterfaces
Description copied from class:LogRelation
Query this class for a reference to another class that it may hold- Overrides:
getQueryableInterfaces
in classLogRelation
- Returns:
- If found, the class desired. Otherwise, null.
-
getRelation
-
getString
-
log
-
log
-