org.planx.routing.kademlia.operation
Class RestoreOperation

java.lang.Object
  extended by org.planx.routing.kademlia.operation.RestoreOperation
All Implemented Interfaces:
Operation<Object>

public class RestoreOperation
extends Object
implements Operation<Object>

Refreshes all buckets and sends HashMessages to all nodes that are among the K closest to mappings stored at this node. Also deletes any mappings that this node is no longer among the K closest to.


Constructor Summary
RestoreOperation(Configuration conf, MessageServer server, Space space, Node local, Map localMap)
           
 
Method Summary
 Object execute()
          Starts the operation and returns when the operation is finished.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RestoreOperation

public RestoreOperation(Configuration conf,
                        MessageServer server,
                        Space space,
                        Node local,
                        Map localMap)
Method Detail

execute

public Object execute()
               throws IOException,
                      RoutingException
Description copied from interface: Operation
Starts the operation and returns when the operation is finished.

Specified by:
execute in interface Operation<Object>
Returns:
null
Throws:
RoutingException - If any suboperation timed out
IOException - If a network occurred


Copyright © 2004-2005 Plan-X. All Rights Reserved.