public class PaxosStartPrepareCleanup extends AsyncFuture<PaxosCleanupHistory> implements RequestCallbackWithFailure<PaxosCleanupHistory>
Modifier and Type | Class and Description |
---|---|
static class |
PaxosStartPrepareCleanup.Request |
static class |
PaxosStartPrepareCleanup.RequestSerializer |
Awaitable.AbstractAwaitable, Awaitable.AsyncAwaitable, Awaitable.Defaults, Awaitable.SyncAwaitable
Modifier and Type | Field and Description |
---|---|
static PaxosStartPrepareCleanup.RequestSerializer |
serializer |
static IVerbHandler<PaxosStartPrepareCleanup.Request> |
verbHandler |
CANCELLED, UNCANCELLABLE, UNSET
Modifier and Type | Method and Description |
---|---|
void |
onFailure(InetAddressAndPort from,
RequestFailureReason reason)
Called when there is an exception on the remote node or timeout happens
|
void |
onResponse(Message<PaxosCleanupHistory> msg) |
static PaxosStartPrepareCleanup |
prepare(TableId tableId,
java.util.Collection<InetAddressAndPort> endpoints,
EndpointState localEpState,
java.util.Collection<Range<Token>> ranges)
We run paxos repair as part of topology changes, so we include the local endpoint state in the paxos repair
prepare message to prevent racing with gossip dissemination and guarantee that every repair participant is aware
of the pending ring change during repair.
|
await, awaitUntil, flatMap, map
addCallback, addCallback, addCallback, addCallback, addCallback, addCallback, addListener, addListener, addListener, addListeners, await, awaitThrowUncheckedOnInterrupt, awaitThrowUncheckedOnInterrupt, awaitUninterruptibly, awaitUninterruptibly, awaitUntilThrowUncheckedOnInterrupt, awaitUntilUninterruptibly, cancel, cause, description, flatMap, get, get, getNow, getWhenDone, isCancellable, isCancelled, isDone, isSuccess, isUncancellable, map, map, notifyExecutor, removeListener, removeListeners, setUncancellable, setUncancellableExclusive, toString, tryFailure, trySuccess
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
invokeOnFailure
trackLatencyForSnitch
await, awaitUninterruptibly, flatMap, rethrowIfFailed, sync, syncThrowUncheckedOnInterrupt, syncUninterruptibly
public static final PaxosStartPrepareCleanup.RequestSerializer serializer
public static final IVerbHandler<PaxosStartPrepareCleanup.Request> verbHandler
public static PaxosStartPrepareCleanup prepare(TableId tableId, java.util.Collection<InetAddressAndPort> endpoints, EndpointState localEpState, java.util.Collection<Range<Token>> ranges)
public void onFailure(InetAddressAndPort from, RequestFailureReason reason)
RequestCallbackWithFailure
onFailure
in interface RequestCallback<PaxosCleanupHistory>
onFailure
in interface RequestCallbackWithFailure<PaxosCleanupHistory>
public void onResponse(Message<PaxosCleanupHistory> msg)
onResponse
in interface RequestCallback<PaxosCleanupHistory>
msg
- response received.Copyright © 2009- The Apache Software Foundation