|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.planx.routing.kademlia.operation.AbstractNodeLookupOperation<E>
public abstract class AbstractNodeLookupOperation<E>
Finds the K closest nodes to a specified identifier. The algorithm terminates when the operation has gotten responses from the K closest nodes it has seen. Nodes that fail to respond are removed from consideration. This is just for code reuse between DataLookupOperation and NodeLookupOperation.
| Constructor Summary | |
|---|---|
AbstractNodeLookupOperation(Configuration conf,
MessageServer server,
Space space,
Node local,
Identifier id)
Create a NodeLookupOperation for the specified id. |
|
| Method Summary | |
|---|---|
abstract E |
execute()
Starts the operation and returns when the operation is finished. |
void |
receive(Message incoming,
int comm)
Receives an incoming NodeReplyMessage. |
void |
timeout(int comm)
A node does not respond or a packet was lost. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractNodeLookupOperation(Configuration conf,
MessageServer server,
Space space,
Node local,
Identifier id)
id.
| Method Detail |
|---|
public abstract E execute()
throws IOException,
RoutingException
Operation
execute in interface Operation<E>IOException
RoutingException
public void receive(Message incoming,
int comm)
throws IOException
receive in interface ReceiverIOException - if an I/O error occurs
public void timeout(int comm)
throws IOException
timeout in interface ReceiverIOException - if an I/O error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||