public class CoordinatorSession extends ConsistentSession
ActiveRepairService.ParentRepairSession
,
there is only one CoordinatorSession
per user repair command, regardless of the number of tables and token
ranges involved.Modifier and Type | Class and Description |
---|---|
static class |
CoordinatorSession.Builder |
ConsistentSession.State
coordinator, participants, ranges, repairedAt, sessionID, tableIds
Constructor and Description |
---|
CoordinatorSession(CoordinatorSession.Builder builder) |
Modifier and Type | Method and Description |
---|---|
static CoordinatorSession.Builder |
builder() |
com.google.common.util.concurrent.ListenableFuture |
execute(java.util.function.Supplier<com.google.common.util.concurrent.ListenableFuture<java.util.List<RepairSessionResult>>> sessionSubmitter,
java.util.concurrent.atomic.AtomicBoolean hasFailure)
Runs the asynchronous consistent repair session.
|
void |
fail() |
void |
finalizeCommit() |
com.google.common.util.concurrent.ListenableFuture<java.lang.Boolean> |
finalizePropose() |
void |
handleFinalizePromise(InetAddressAndPort participant,
boolean success) |
void |
handlePrepareResponse(InetAddressAndPort participant,
boolean success) |
com.google.common.util.concurrent.ListenableFuture<java.lang.Boolean> |
prepare() |
protected void |
sendMessage(InetAddressAndPort destination,
Message<RepairMessage> message) |
void |
setParticipantState(InetAddressAndPort participant,
ConsistentSession.State state) |
void |
setRepairing() |
void |
setState(ConsistentSession.State state) |
equals, getState, hashCode, toString
public CoordinatorSession(CoordinatorSession.Builder builder)
public static CoordinatorSession.Builder builder()
public void setState(ConsistentSession.State state)
setState
in class ConsistentSession
public void setParticipantState(InetAddressAndPort participant, ConsistentSession.State state)
protected void sendMessage(InetAddressAndPort destination, Message<RepairMessage> message)
public com.google.common.util.concurrent.ListenableFuture<java.lang.Boolean> prepare()
public void handlePrepareResponse(InetAddressAndPort participant, boolean success)
public void setRepairing()
public com.google.common.util.concurrent.ListenableFuture<java.lang.Boolean> finalizePropose()
public void handleFinalizePromise(InetAddressAndPort participant, boolean success)
public void finalizeCommit()
public void fail()
public com.google.common.util.concurrent.ListenableFuture execute(java.util.function.Supplier<com.google.common.util.concurrent.ListenableFuture<java.util.List<RepairSessionResult>>> sessionSubmitter, java.util.concurrent.atomic.AtomicBoolean hasFailure)
Copyright © 2009-2020 The Apache Software Foundation