| Package | Description |
|---|---|
| de.cgrotz.kademlia | |
| de.cgrotz.kademlia.client | |
| de.cgrotz.kademlia.node | |
| de.cgrotz.kademlia.protocol | |
| de.cgrotz.kademlia.routing | |
| de.cgrotz.kademlia.server |
| Modifier and Type | Field and Description |
|---|---|
protected Node |
Kademlia.localNode |
| Modifier and Type | Method and Description |
|---|---|
Node |
Kademlia.getLocalNode() |
| Modifier and Type | Method and Description |
|---|---|
void |
Kademlia.bootstrap(Node bootstrapNode) |
| Modifier and Type | Method and Description |
|---|---|
void |
KademliaClient.sendContentToNode(Node node,
Key key,
String value) |
void |
KademliaClient.sendFindNode(Node node,
Key key,
java.util.function.Consumer<List<Node>> callback) |
void |
KademliaClient.sendFindValue(Node node,
Key key,
java.util.function.Consumer<NodeReply> nodeReplyConsumer,
java.util.function.Consumer<ValueReply> valueReplyConsumer) |
void |
KademliaClient.sendPing(Node node,
java.util.function.Consumer<Pong> pongConsumer) |
| Modifier and Type | Method and Description |
|---|---|
void |
KademliaClient.sendFindNode(Node node,
Key key,
java.util.function.Consumer<List<Node>> callback) |
| Constructor and Description |
|---|
KademliaClient(Configuration config,
Node localNode) |
| Modifier and Type | Method and Description |
|---|---|
int |
Node.compareTo(Node o) |
| Constructor and Description |
|---|
FindNode(long seqId,
Node origin,
Key lookupId) |
FindValue(long seqId,
Node origin,
Key key) |
NodeReply(long seqId,
Node origin,
List<Node> nodes) |
Ping(long seqId,
Node origin) |
Pong(long seqId,
Node origin) |
Store(long seqId,
Node origin,
Key key,
String value) |
StoreReply(long seqId,
Node origin) |
ValueReply(long seqId,
Node origin,
Key key,
String value) |
| Constructor and Description |
|---|
NodeReply(long seqId,
Node origin,
List<Node> nodes) |
| Modifier and Type | Method and Description |
|---|---|
List<Node> |
RoutingTable.findClosest(Key lookupId,
int numberOfRequiredNodes) |
TreeSet<Node> |
Bucket.getNodes() |
| Modifier and Type | Method and Description |
|---|---|
void |
RoutingTable.addNode(Node node) |
void |
Bucket.addNode(Node node) |
void |
RoutingTable.retireNode(Node node) |
void |
Bucket.retireNode(Node nodeToRetire) |
| Constructor and Description |
|---|
KademliaServer(String bindingAddress,
int port,
int kValue,
RoutingTable routingTable,
LocalStorage localStorage,
Node localNode,
Map<String,java.util.function.Consumer<Event>> eventConsumers) |
KademliaServerHandler(RoutingTable routingTable,
LocalStorage localStorage,
Node localNode,
int kValue,
Map<String,java.util.function.Consumer<Event>> eventConsumers) |
Copyright © 2016. All Rights Reserved.