public class Validator
extends java.lang.Object
implements java.lang.Runnable
Modifier and Type | Field and Description |
---|---|
RepairJobDesc |
desc |
InetAddressAndPort |
initiator |
boolean |
isIncremental |
int |
nowInSec |
Constructor and Description |
---|
Validator(RepairJobDesc desc,
InetAddressAndPort initiator,
int nowInSec,
boolean evenTreeDistribution,
boolean isIncremental,
PreviewKind previewKind) |
Validator(RepairJobDesc desc,
InetAddressAndPort initiator,
int nowInSec,
boolean isIncremental,
PreviewKind previewKind) |
Validator(RepairJobDesc desc,
InetAddressAndPort initiator,
int nowInSec,
PreviewKind previewKind) |
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 |
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 InetAddressAndPort initiator
public final int nowInSec
public final boolean isIncremental
public Validator(RepairJobDesc desc, InetAddressAndPort initiator, int nowInSec, PreviewKind previewKind)
public Validator(RepairJobDesc desc, InetAddressAndPort initiator, int nowInSec, boolean isIncremental, PreviewKind previewKind)
public Validator(RepairJobDesc desc, InetAddressAndPort initiator, int nowInSec, boolean evenTreeDistribution, boolean isIncremental, PreviewKind previewKind)
public void prepare(ColumnFamilyStore cfs, MerkleTrees tree)
public void add(UnfilteredRowIterator partition)
partition
- Partition to add hashpublic boolean findCorrectRange(Token t)
public void complete()
public void fail()
public void run()
run
in interface java.lang.Runnable
Copyright © 2009- The Apache Software Foundation