public class ValidationTask extends com.google.common.util.concurrent.AbstractFuture<TreeResponse> implements java.lang.Runnable
ValidationRequest
to a replica.
When a replica sends back message, task completes.Constructor and Description |
---|
ValidationTask(RepairJobDesc desc,
InetAddressAndPort endpoint,
int nowInSec,
PreviewKind previewKind) |
Modifier and Type | Method and Description |
---|---|
void |
run()
Send ValidationRequest to replica
|
void |
treesReceived(MerkleTrees trees)
Receive MerkleTrees from replica node.
|
public ValidationTask(RepairJobDesc desc, InetAddressAndPort endpoint, int nowInSec, PreviewKind previewKind)
public void run()
run
in interface java.lang.Runnable
public void treesReceived(MerkleTrees trees)
trees
- MerkleTrees that is sent from replica. Null if validation failed on replica node.Copyright © 2009-2021 The Apache Software Foundation