public class Validator
extends java.lang.Object
implements java.lang.Runnable
Modifier and Type | Field and Description |
---|---|
RepairJobDesc |
desc |
int |
gcBefore |
java.net.InetAddress |
initiator |
Constructor and Description |
---|
Validator(RepairJobDesc desc,
java.net.InetAddress initiator,
int gcBefore) |
Validator(RepairJobDesc desc,
java.net.InetAddress initiator,
int gcBefore,
boolean evenTreeDistribution) |
Modifier and Type | Method and Description |
---|---|
void |
add(UnfilteredRowIterator partition)
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.
|
boolean |
findCorrectRange(Token t) |
void |
prepare(ColumnFamilyStore cfs,
MerkleTrees tree) |
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 int gcBefore
public Validator(RepairJobDesc desc, java.net.InetAddress initiator, int gcBefore)
public Validator(RepairJobDesc desc, java.net.InetAddress initiator, int gcBefore, boolean evenTreeDistribution)
public void prepare(ColumnFamilyStore cfs, MerkleTrees tree)
public void add(UnfilteredRowIterator partition)
row
- Row to add hashpublic boolean findCorrectRange(Token t)
public void complete()
public void completeTree()
public void fail()
public void run()
run
in interface java.lang.Runnable
Copyright © 2017 The Apache Software Foundation