Class PeerManager.PeerManagerRegistrationImpl
java.lang.Object
com.biglybt.core.peermanager.PeerManager.PeerManagerRegistrationImpl
- All Implemented Interfaces:
PeerManagerRegistration
- Enclosing class:
PeerManager
private class PeerManager.PeerManagerRegistrationImpl
extends Object
implements PeerManagerRegistration
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate PEPeerControlprivate final PeerManagerRegistrationAdapterprivate PEPeerControlprivate final HashWrapperprivate BloomFilterprivate Map<String, TOTorrentFile> private final PeerManager.PeerManagerRegistrationImpl.ProbeControl -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPeerManagerRegistrationImpl(HashWrapper _hash, PeerManagerRegistrationAdapter _adapter) -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(PEPeerControl _active_control) voidaddLink(String link, TOTorrentFile target) voidprotected PEPeerControlprotected PeerManagerRegistrationAdapterprotected byte[]getHash()intgetHashOverrideLocalPort(boolean only_if_allocated) booleanisActive()protected booleanisKnownSeed(InetSocketAddress address) voidremoveLink(String link) voidroute(NetworkConnection connection, PeerManagerRoutingListener listener) protected voidroute(PEPeerControl control, NetworkConnection connection, boolean is_activation, PeerManagerRoutingListener listener) protected voidsetKnownSeed(InetSocketAddress address) protected booleanvoid
-
Field Details
-
hash
-
adapter
-
probe_control
-
download
-
active_control
-
pending_connections
-
known_seeds
-
links
-
-
Constructor Details
-
PeerManagerRegistrationImpl
-
-
Method Details
-
getAdapter
-
getHash
protected byte[] getHash() -
getHashOverrideLocalPort
public int getHashOverrideLocalPort(boolean only_if_allocated) - Specified by:
getHashOverrideLocalPortin interfacePeerManagerRegistration
-
getOtherRegistrationsForHash
- Specified by:
getOtherRegistrationsForHashin interfacePeerManagerRegistration
-
getLink
- Specified by:
getLinkin interfacePeerManagerRegistration
-
addLink
- Specified by:
addLinkin interfacePeerManagerRegistration- Throws:
Exception
-
removeLink
- Specified by:
removeLinkin interfacePeerManagerRegistration
-
isActive
public boolean isActive() -
activate
- Specified by:
activatein interfacePeerManagerRegistration
-
deactivate
public void deactivate()- Specified by:
deactivatein interfacePeerManagerRegistration
-
unregister
public void unregister()- Specified by:
unregisterin interfacePeerManagerRegistration
-
isKnownSeed
-
setKnownSeed
-
getActiveControl
-
route
- Specified by:
routein interfacePeerManagerRegistration
-
timeoutCheck
protected boolean timeoutCheck() -
route
protected void route(PEPeerControl control, NetworkConnection connection, boolean is_activation, PeerManagerRoutingListener listener)
-