public static class AntiEntropyService.Validator
extends java.lang.Object
implements java.lang.Runnable
Modifier and Type | Class and Description |
---|---|
static class |
AntiEntropyService.Validator.ValidatorSerializer |
Modifier and Type | Field and Description |
---|---|
static MerkleTree.RowHash |
EMPTY_ROW |
AntiEntropyService.TreeRequest |
request |
static AntiEntropyService.Validator.ValidatorSerializer |
serializer |
MerkleTree |
tree |
Constructor and Description |
---|
AntiEntropyService.Validator(AntiEntropyService.TreeRequest request) |
Modifier and Type | Method and Description |
---|---|
void |
add(AbstractCompactedRow row)
Called (in order) for every row present in the CF.
|
void |
complete()
Registers the newly created tree for rendezvous in Stage.ANTIENTROPY.
|
MessageOut<AntiEntropyService.Validator> |
createMessage() |
void |
prepare(ColumnFamilyStore cfs) |
void |
run()
Called after the validation lifecycle to respond with the now valid tree.
|
public final AntiEntropyService.TreeRequest request
public final MerkleTree tree
public static final MerkleTree.RowHash EMPTY_ROW
public static AntiEntropyService.Validator.ValidatorSerializer serializer
public AntiEntropyService.Validator(AntiEntropyService.TreeRequest request)
public void prepare(ColumnFamilyStore cfs)
public void add(AbstractCompactedRow row)
row
- The row.public void complete()
public void run()
run
in interface java.lang.Runnable
public MessageOut<AntiEntropyService.Validator> createMessage()
Copyright © 2013 The Apache Software Foundation