public enum EvaluatorRestartState extends Enum<EvaluatorRestartState>
Enum Constant and Description |
---|
EXPECTED
Have not yet heard back from an evaluator, but we are expecting it to report back.
|
EXPIRED
The evaluator has only contacted the driver after the expiration period.
|
FAILED
The evaluator has failed on driver restart.
|
NOT_EXPECTED
The evaluator is not a restarted instance.
|
PROCESSED
The evaluator has had its context/running task processed.
|
REPORTED
Received the evaluator heartbeat, but have not yet processed it.
|
REREGISTERED
The evaluator has had its recovery heartbeat processed.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasReported() |
boolean |
isFailedOrExpired() |
boolean |
isFailedOrNotExpected() |
boolean |
isLegalTransition(EvaluatorRestartState toState)
Check if the transition of
EvaluatorRestartState from current state to the given one is legal. |
static boolean |
isLegalTransition(EvaluatorRestartState fromState,
EvaluatorRestartState toState)
Deprecated.
TODO[JIRA REEF-1560] Use non-static method instead. Remove after version 0.16
|
boolean |
isReregistered() |
static EvaluatorRestartState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EvaluatorRestartState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EvaluatorRestartState NOT_EXPECTED
public static final EvaluatorRestartState EXPECTED
public static final EvaluatorRestartState REPORTED
public static final EvaluatorRestartState REREGISTERED
public static final EvaluatorRestartState PROCESSED
public static final EvaluatorRestartState EXPIRED
public static final EvaluatorRestartState FAILED
public static EvaluatorRestartState[] values()
for (EvaluatorRestartState c : EvaluatorRestartState.values()) System.out.println(c);
public static EvaluatorRestartState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is null@Deprecated public static boolean isLegalTransition(EvaluatorRestartState fromState, EvaluatorRestartState toState)
EvaluatorRestartState
from one state to another is legal.fromState
- start state.toState
- destination state.EvaluatorRestartState
is legal.public final boolean isLegalTransition(EvaluatorRestartState toState)
EvaluatorRestartState
from current state to the given one is legal.toState
- destination state.public boolean hasReported()
public boolean isFailedOrNotExpected()
public boolean isFailedOrExpired()
public boolean isReregistered()
Copyright © 2017 The Apache Software Foundation. All rights reserved.