Class AbstractCompletable<I>
- java.lang.Object
-
- org.apache.cassandra.repair.state.AbstractCompletable<I>
-
- All Implemented Interfaces:
Completable<I>
- Direct Known Subclasses:
AbstractState
,ParticipateState
public abstract class AbstractCompletable<I> extends java.lang.Object implements Completable<I>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
AbstractCompletable.BasePhase
protected class
AbstractCompletable.BaseSkipPhase
static class
AbstractCompletable.Status
-
Nested classes/interfaces inherited from interface org.apache.cassandra.repair.state.Completable
Completable.Result
-
-
Field Summary
Fields Modifier and Type Field Description protected Clock
clock
I
id
protected long
lastUpdatedAtNs
-
Constructor Summary
Constructors Constructor Description AbstractCompletable(Clock clock, I id)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description AbstractCompletable.Status
getCompletionStatus()
I
getId()
long
getInitializedAtMillis()
long
getInitializedAtNanos()
long
getLastUpdatedAtMillis()
long
getLastUpdatedAtNanos()
Completable.Result
getResult()
abstract boolean
isAccepted()
protected long
nanosToMillis(long nanos)
protected void
onComplete()
protected boolean
tryResult(Completable.Result result)
void
updated()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.cassandra.repair.state.Completable
getDurationMillis, getFailureCause, getSuccessMessage, isComplete
-
-
-
-
Method Detail
-
isAccepted
public abstract boolean isAccepted()
-
getCompletionStatus
public AbstractCompletable.Status getCompletionStatus()
-
getId
public I getId()
- Specified by:
getId
in interfaceCompletable<I>
-
getInitializedAtMillis
public long getInitializedAtMillis()
- Specified by:
getInitializedAtMillis
in interfaceCompletable<I>
-
getInitializedAtNanos
public long getInitializedAtNanos()
- Specified by:
getInitializedAtNanos
in interfaceCompletable<I>
-
getLastUpdatedAtMillis
public long getLastUpdatedAtMillis()
- Specified by:
getLastUpdatedAtMillis
in interfaceCompletable<I>
-
getLastUpdatedAtNanos
public long getLastUpdatedAtNanos()
- Specified by:
getLastUpdatedAtNanos
in interfaceCompletable<I>
-
getResult
public Completable.Result getResult()
- Specified by:
getResult
in interfaceCompletable<I>
-
updated
public void updated()
-
tryResult
protected boolean tryResult(Completable.Result result)
-
onComplete
protected void onComplete()
-
nanosToMillis
protected long nanosToMillis(long nanos)
-
-