voldemort.store.routed.action
Class ConfigureNodesByZone<V,PD extends BasicPipelineData<V>>
java.lang.Object
voldemort.store.routed.action.AbstractAction<K,V,PD>
voldemort.store.routed.action.AbstractConfigureNodes<ByteArray,V,PD>
voldemort.store.routed.action.ConfigureNodesByZone<V,PD>
- All Implemented Interfaces:
- Action
- Direct Known Subclasses:
- ConfigureNodesLocalHostByZone
public class ConfigureNodesByZone<V,PD extends BasicPipelineData<V>>
- extends AbstractConfigureNodes<ByteArray,V,PD>
Configure the Nodes obtained via the routing strategy based on the zone
information. Local zone nodes first, followed by the corresponding nodes from
each of the other zones, ordered by proximity.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfigureNodesByZone
public ConfigureNodesByZone(PD pipelineData,
Pipeline.Event completeEvent,
FailureDetector failureDetector,
int required,
RoutingStrategy routingStrategy,
ByteArray key,
Zone clientZone)
getNodes
public java.util.List<Node> getNodes(ByteArray key,
Pipeline.Operation op)
execute
public void execute(Pipeline pipeline)
- Description copied from interface:
Action
- Executes some portion of the overall logic in the routing pipeline.
- Parameters:
pipeline
- Pipeline
instance of which this action is a part,
used for adding events to the event queue or getting the
Pipeline.Operation
that resulted in the action being called
Jay Kreps, Roshan Sumbaly, Alex Feinberg, Bhupesh Bansal, Lei Gao, Chinmay Soman, Vinoth Chandar, Zhongjie Wu