org.planx.xmlstore.routing.operation
Class StoreOperation

java.lang.Object
  extended by org.planx.xmlstore.routing.operation.Operation
      extended by org.planx.xmlstore.routing.operation.StoreOperation

public class StoreOperation
extends Operation

Stores the mapping at the K closest nodes to the key. If less than Space.K nodes exist in the network the mapping will be stored at all nodes.


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

Constructor Detail

StoreOperation

public StoreOperation(Configuration conf,
                      MessageServer server,
                      Space space,
                      Map localMap,
                      Node local,
                      Identifier key,
                      TimestampedValue value)
Method Detail

execute

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

Specified by:
execute in class Operation
Returns:
null
Throws:
RoutingException - If the operation timed out
IOException - If a network error occurred


Copyright © 2010. All Rights Reserved.