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 |
ValidationState |
state |
TopPartitionTracker.Collector |
topPartitionCollector |
Constructor and Description |
---|
Validator(ValidationState state,
int nowInSec,
boolean evenTreeDistribution,
boolean isIncremental,
PreviewKind previewKind) |
Validator(ValidationState state,
int nowInSec,
boolean isIncremental,
PreviewKind previewKind) |
Validator(ValidationState state,
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(java.lang.Throwable e)
Called when some error during the validation happened.
|
boolean |
findCorrectRange(Token t) |
PreviewKind |
getPreviewKind() |
void |
prepare(ColumnFamilyStore cfs,
MerkleTrees trees,
TopPartitionTracker.Collector topPartitionCollector) |
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 final ValidationState state
public TopPartitionTracker.Collector topPartitionCollector
public Validator(ValidationState state, int nowInSec, PreviewKind previewKind)
public Validator(ValidationState state, int nowInSec, boolean isIncremental, PreviewKind previewKind)
public Validator(ValidationState state, int nowInSec, boolean evenTreeDistribution, boolean isIncremental, PreviewKind previewKind)
public void prepare(ColumnFamilyStore cfs, MerkleTrees trees, TopPartitionTracker.Collector topPartitionCollector)
public void add(UnfilteredRowIterator partition)
partition
- Partition to add hashpublic boolean findCorrectRange(Token t)
public void complete()
public void fail(java.lang.Throwable e)
public void run()
run
in interface java.lang.Runnable
public PreviewKind getPreviewKind()
Copyright © 2009-2022 The Apache Software Foundation