|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvoldemort.store.slop.HintedHandoff
public class HintedHandoff
Hinted handoff: if, when processing a pipeline for a given request, failures
shall occur on specific nodes, the requests for these failed nodes should be
queued up on other, currently available nodes. Semantics of the operation
should not change i.e., if required-writes are not met, the
request should still be considered a failure.
| Constructor Summary | |
|---|---|
HintedHandoff(FailureDetector failureDetector,
java.util.Map<java.lang.Integer,Store<ByteArray,Slop,byte[]>> slopStores,
java.util.Map<java.lang.Integer,NonblockingStore> nonblockingSlopStores,
HintedHandoffStrategy handoffStrategy,
java.util.List<Node> failedNodes,
long timeoutMs)
Create a Hinted Handoff object |
|
| Method Summary | |
|---|---|
void |
sendHintParallel(Node failedNode,
Version version,
Slop slop)
Like sendHintSerial(voldemort.cluster.Node, voldemort.versioning.Version, Slop)
, but doesn't block the pipeline. |
boolean |
sendHintSerial(Node failedNode,
Version version,
Slop slop)
Send a hint of a request originally meant for the failed node to another node in the ring, as selected by the HintedHandoffStrategy
implementation passed in the constructor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HintedHandoff(FailureDetector failureDetector,
java.util.Map<java.lang.Integer,Store<ByteArray,Slop,byte[]>> slopStores,
java.util.Map<java.lang.Integer,NonblockingStore> nonblockingSlopStores,
HintedHandoffStrategy handoffStrategy,
java.util.List<Node> failedNodes,
long timeoutMs)
failureDetector - The failure detectornonblockingSlopStores - A map of node ids to nonb-locking slop
storesslopStores - A map of node ids to blocking slop storeshandoffStrategy - The HintedHandoffStrategy implementationfailedNodes - A list of nodes in the original preflist for the
request that have failed or are unavailabletimeoutMs - Timeout for slop stores| Method Detail |
|---|
public void sendHintParallel(Node failedNode,
Version version,
Slop slop)
sendHintSerial(voldemort.cluster.Node, voldemort.versioning.Version, Slop)
, but doesn't block the pipeline. Intended for handling prolonged
failures without incurring a performance cost.
sendHintSerial(voldemort.cluster.Node,
voldemort.versioning.Version, Slop)
public boolean sendHintSerial(Node failedNode,
Version version,
Slop slop)
HintedHandoffStrategy
implementation passed in the constructor
failedNode - The node the request was originally meant forversion - The version of the request's objectslop - The hint
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||