|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.limegroup.gnutella.dht.AbstractDHTController
com.limegroup.gnutella.dht.ActiveDHTNodeController
public class ActiveDHTNodeController
Controls an active DHT node.
Active nodes load and persist DHT data, as they keep the same node ID over multiple sessions and can therefore re-use their local routing table and local database.
| Field Summary |
|---|
| Fields inherited from class com.limegroup.gnutella.dht.AbstractDHTController |
|---|
bootstrapper, dht, LOG |
| Method Summary | |
|---|---|
protected MojitoDHT |
createMojitoDHT(Vendor vendor,
Version version)
A factory method to create MojitoDHTs |
List<IpPort> |
getActiveDHTNodes(int maxNodes)
Returns maxNodes number of active Node IP:Ports |
void |
handleConnectionLifecycleEvent(ConnectionLifecycleEvent evt)
A callback method to notify the DHTController about ConnectionLifecycleEvents |
void |
stop()
Shuts down the DHT. |
| Methods inherited from class com.limegroup.gnutella.dht.AbstractDHTController |
|---|
addActiveDHTNode, addActiveDHTNode, addContact, addPassiveDHTNode, getDHTMode, getMojitoDHT, getMRSNodes, getRouteTableVersion, isBootstrapped, isRunning, isWaitingForNodes, sendUpdatedCapabilities, start |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
protected MojitoDHT createMojitoDHT(Vendor vendor,
Version version)
AbstractDHTController
createMojitoDHT in class AbstractDHTControllerpublic void stop()
AbstractDHTControllerContacts in the route
table.
The persisted route table (stored contacts from the last session) is used as a secondary means to bootstrap, if the node didn't receive any hosts through the Gnutella network to bootstrap.
stop in interface DHTControllerstop in class AbstractDHTControllerpublic void handleConnectionLifecycleEvent(ConnectionLifecycleEvent evt)
DHTController
handleConnectionLifecycleEvent in interface DHTControllerhandleConnectionLifecycleEvent in class AbstractDHTControllerpublic List<IpPort> getActiveDHTNodes(int maxNodes)
DHTController
getActiveDHTNodes in interface DHTControllergetActiveDHTNodes in class AbstractDHTController
|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||