public class Validator
extends java.lang.Object
implements java.lang.Runnable
Modifier and Type | Field and Description |
---|---|
RepairJobDesc |
desc |
static MerkleTree.RowHash |
EMPTY_ROW |
int |
gcBefore |
java.net.InetAddress |
initiator |
MerkleTree |
tree |
Constructor and Description |
---|
Validator(RepairJobDesc desc,
java.net.InetAddress initiator,
int gcBefore)
Create Validator with default size of initial Merkle Tree.
|
Validator(RepairJobDesc desc,
java.net.InetAddress initiator,
MerkleTree tree,
int gcBefore) |
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.
|
void |
completeTree() |
void |
fail()
Called when some error during the validation happened.
|
void |
prepare(ColumnFamilyStore cfs) |
void |
run()
Called after the validation lifecycle to respond with the now valid tree.
|
public final RepairJobDesc desc
public final java.net.InetAddress initiator
public final MerkleTree tree
public final int gcBefore
public static final MerkleTree.RowHash EMPTY_ROW
public Validator(RepairJobDesc desc, java.net.InetAddress initiator, int gcBefore)
public Validator(RepairJobDesc desc, java.net.InetAddress initiator, MerkleTree tree, int gcBefore)
public void prepare(ColumnFamilyStore cfs)
public void add(AbstractCompactedRow row)
row
- Row to add hashpublic void complete()
public void completeTree()
public void fail()
public void run()
run
in interface java.lang.Runnable
Copyright © 2013 The Apache Software Foundation