Class SessionState
- java.lang.Object
-
- org.apache.cassandra.repair.state.AbstractCompletable<I>
-
- org.apache.cassandra.repair.state.AbstractState<SessionState.State,TimeUUID>
-
- org.apache.cassandra.repair.state.SessionState
-
- All Implemented Interfaces:
Completable<TimeUUID>
,State<SessionState.State,TimeUUID>
public class SessionState extends AbstractState<SessionState.State,TimeUUID>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
SessionState.Phase
static class
SessionState.State
-
Nested classes/interfaces inherited from class org.apache.cassandra.repair.state.AbstractState
AbstractState.UpdateType
-
Nested classes/interfaces inherited from class org.apache.cassandra.repair.state.AbstractCompletable
AbstractCompletable.BasePhase, AbstractCompletable.BaseSkipPhase, AbstractCompletable.Status
-
Nested classes/interfaces inherited from interface org.apache.cassandra.repair.state.Completable
Completable.Result
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.String[]
cfnames
CommonRange
commonRange
java.lang.String
keyspace
TimeUUID
parentRepairSession
SessionState.Phase
phase
-
Fields inherited from class org.apache.cassandra.repair.state.AbstractState
COMPLETE, currentState, INIT, stateTimesNanos
-
Fields inherited from class org.apache.cassandra.repair.state.AbstractCompletable
clock, id, lastUpdatedAtNs
-
-
Constructor Summary
Constructors Constructor Description SessionState(Clock clock, TimeUUID parentRepairSession, java.lang.String keyspace, java.lang.String[] cfnames, CommonRange commonRange)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JobState
getJob(java.util.UUID id)
java.util.Set<java.util.UUID>
getJobIds()
java.util.Collection<JobState>
getJobs()
java.util.Set<InetAddressAndPort>
getParticipants()
void
register(JobState state)
java.lang.String
status()
-
Methods inherited from class org.apache.cassandra.repair.state.AbstractState
getCurrentState, getStateTimesMillis, getStatus, isAccepted, maybeUpdateState, onComplete, toString, updateState
-
Methods inherited from class org.apache.cassandra.repair.state.AbstractCompletable
getCompletionStatus, getId, getInitializedAtMillis, getInitializedAtNanos, getLastUpdatedAtMillis, getLastUpdatedAtNanos, getResult, nanosToMillis, tryResult, updated
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.cassandra.repair.state.Completable
getDurationMillis, getFailureCause, getId, getInitializedAtMillis, getInitializedAtNanos, getLastUpdatedAtMillis, getLastUpdatedAtNanos, getResult, getSuccessMessage, isComplete
-
-
-
-
Field Detail
-
parentRepairSession
public final TimeUUID parentRepairSession
-
keyspace
public final java.lang.String keyspace
-
cfnames
public final java.lang.String[] cfnames
-
commonRange
public final CommonRange commonRange
-
phase
public final SessionState.Phase phase
-
-
Constructor Detail
-
SessionState
public SessionState(Clock clock, TimeUUID parentRepairSession, java.lang.String keyspace, java.lang.String[] cfnames, CommonRange commonRange)
-
-
Method Detail
-
getJobs
public java.util.Collection<JobState> getJobs()
-
getJob
public JobState getJob(java.util.UUID id)
-
getJobIds
public java.util.Set<java.util.UUID> getJobIds()
-
getParticipants
public java.util.Set<InetAddressAndPort> getParticipants()
-
status
public java.lang.String status()
- Overrides:
status
in classAbstractState<SessionState.State,TimeUUID>
-
register
public void register(JobState state)
-
-