public class RepairJob
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
RepairJobDesc |
desc |
Constructor and Description |
---|
RepairJob(IRepairJobEventListener listener,
java.util.UUID parentSessionId,
java.util.UUID sessionId,
java.lang.String keyspace,
java.lang.String columnFamily,
Range<Token> range,
RepairParallelism parallelismDegree,
com.google.common.util.concurrent.ListeningExecutorService taskExecutor)
Create repair job to run on specific columnfamily
|
Modifier and Type | Method and Description |
---|---|
int |
addTree(java.net.InetAddress endpoint,
MerkleTree tree)
Add a new received tree and return the number of remaining tree to
be received for the job to be complete.
|
boolean |
isFailed() |
void |
sendTreeRequests(java.util.Collection<java.net.InetAddress> endpoints)
Send merkle tree request to every involved neighbor.
|
void |
submitDifferencers()
Submit differencers for running.
|
public final RepairJobDesc desc
public RepairJob(IRepairJobEventListener listener, java.util.UUID parentSessionId, java.util.UUID sessionId, java.lang.String keyspace, java.lang.String columnFamily, Range<Token> range, RepairParallelism parallelismDegree, com.google.common.util.concurrent.ListeningExecutorService taskExecutor)
public boolean isFailed()
public void sendTreeRequests(java.util.Collection<java.net.InetAddress> endpoints)
public int addTree(java.net.InetAddress endpoint, MerkleTree tree)
endpoint
- address of the endpoint that sent responsetree
- sent Merkle tree or null if validation failed on endpointpublic void submitDifferencers()
Copyright © 2015 The Apache Software Foundation