Class CoordinatorSession
java.lang.Object
org.apache.cassandra.repair.consistent.ConsistentSession
org.apache.cassandra.repair.consistent.CoordinatorSession
Coordinator side logic and state of a consistent repair session. Like
ActiveRepairService.ParentRepairSession,
there is only one CoordinatorSession per user repair command, regardless of the number of tables and token
ranges involved.-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.apache.cassandra.repair.consistent.ConsistentSession
ConsistentSession.State -
Field Summary
Fields inherited from class org.apache.cassandra.repair.consistent.ConsistentSession
coordinator, participants, ranges, repairedAt, sessionID, tableIds -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CoordinatorSession.Builderbuilder(SharedContext ctx) execute(Supplier<Future<CoordinatedRepairResult>> sessionSubmitter) Runs the asynchronous consistent repair session.voidfail()voidvoidhandleFinalizePromise(Message<FinalizePromise> message) voidprepare()voidsetParticipantState(InetAddressAndPort participant, ConsistentSession.State state) voidvoidsetState(ConsistentSession.State state) Methods inherited from class org.apache.cassandra.repair.consistent.ConsistentSession
equals, getState, hashCode, intersects, isCompleted, toString
-
Constructor Details
-
CoordinatorSession
-
-
Method Details
-
setState
- Overrides:
setStatein classConsistentSession
-
setParticipantState
-
prepare
-
handlePrepareResponse
-
setRepairing
public void setRepairing() -
finalizePropose
-
handleFinalizePromise
-
finalizeCommit
public void finalizeCommit() -
fail
public void fail() -
execute
public Future<CoordinatedRepairResult> execute(Supplier<Future<CoordinatedRepairResult>> sessionSubmitter) Runs the asynchronous consistent repair session. Actual repair sessions are scheduled via a submitter to make unit testing easier