org.planx.xmlstore.routing.operation
Class ResponsibleOperation
java.lang.Object
org.planx.xmlstore.routing.operation.Operation
org.planx.xmlstore.routing.operation.ResponsibleOperation
public class ResponsibleOperation
- extends Operation
Finds the K closest nodes to a specified identifier and returns their
associated peer information objects.
- Author:
- Thomas Ambus
|
Method Summary |
Object |
execute()
Returns a List of InetSocketAddress objects identifying the K closest
peers to the key specified in the constructor. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResponsibleOperation
public ResponsibleOperation(Configuration conf,
MessageServer server,
Space space,
Node local,
Identifier key)
execute
public Object execute()
throws IOException,
RoutingException
- Returns a List of InetSocketAddress objects identifying the K closest
peers to the key specified in the constructor.
- Specified by:
execute in class Operation
- Throws:
RoutingException - If the operation timed out
IOException - If a network error occurred
Copyright © 2010. All Rights Reserved.