Class AbstractState<T extends Enum<T>,I>
java.lang.Object
org.apache.cassandra.repair.state.AbstractCompletable<I>
org.apache.cassandra.repair.state.AbstractState<T,I>
- All Implemented Interfaces:
Completable<I>,State<T,I>
- Direct Known Subclasses:
CoordinatorState,JobState,ParticipateState.Job,SessionState,SyncState,ValidationState
public abstract class AbstractState<T extends Enum<T>,I>
extends AbstractCompletable<I>
implements State<T,I>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.apache.cassandra.repair.state.AbstractCompletable
AbstractCompletable.BasePhase, AbstractCompletable.BaseSkipPhase, AbstractCompletable.StatusNested classes/interfaces inherited from interface org.apache.cassandra.repair.state.Completable
Completable.Result -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intprotected intstatic final intprotected final long[]Fields inherited from class org.apache.cassandra.repair.state.AbstractCompletable
clock, id, lastUpdatedAtNs -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanprotected AbstractState.UpdateTypemaybeUpdateState(T state) protected voidstatus()toString()protected voidupdateState(T state) Methods inherited from class org.apache.cassandra.repair.state.AbstractCompletable
getCompletionStatus, getId, getInitializedAtMillis, getInitializedAtNanos, getLastUpdatedAtMillis, getLastUpdatedAtNanos, getResult, nanosToMillis, tryResult, updatedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.cassandra.repair.state.Completable
getDurationMillis, getFailureCause, getId, getInitializedAtMillis, getInitializedAtNanos, getLastUpdatedAtMillis, getLastUpdatedAtNanos, getResult, getSuccessMessage, isComplete
-
Field Details
-
INIT
public static final int INIT- See Also:
-
COMPLETE
public static final int COMPLETE- See Also:
-
stateTimesNanos
protected final long[] stateTimesNanos -
currentState
protected int currentState
-
-
Constructor Details
-
AbstractState
-
-
Method Details
-
isAccepted
public boolean isAccepted()- Specified by:
isAcceptedin classAbstractCompletable<I>
-
getStatus
-
status
-
toString
-
getCurrentState
public int getCurrentState() -
getStateTimesMillis
-
onComplete
protected void onComplete()- Overrides:
onCompletein classAbstractCompletable<I>
-
updateState
-
maybeUpdateState
-