org.planx.routing.kademlia.operation
Class StoreOperation
java.lang.Object
org.planx.routing.kademlia.operation.StoreOperation
- All Implemented Interfaces:
- Operation<Object>
public class StoreOperation
- extends Object
- implements Operation<Object>
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.
|
Method Summary |
Object |
execute()
Starts the operation and returns when the operation is finished. |
StoreOperation
public StoreOperation(Configuration conf,
MessageServer server,
Space space,
Map<Identifier,TimestampedValue> localMap,
Node local,
Identifier key,
TimestampedValue value)
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 the operation timed out
IOException - If a network error occurred
Copyright © 2004-2005 Plan-X. All Rights Reserved.