org.planx.xmlstore.routing.operation
Class ResponsibleOperation

java.lang.Object
  extended by org.planx.xmlstore.routing.operation.Operation
      extended by 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

Constructor Summary
ResponsibleOperation(Configuration conf, MessageServer server, Space space, Node local, Identifier key)
           
 
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
 

Constructor Detail

ResponsibleOperation

public ResponsibleOperation(Configuration conf,
                            MessageServer server,
                            Space space,
                            Node local,
                            Identifier key)
Method Detail

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.