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() |
static boolean |
isLegalTransition(EvaluatorRestartState from,
EvaluatorRestartState to) |
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 nullpublic static boolean isLegalTransition(EvaluatorRestartState from, EvaluatorRestartState to)
EvaluatorRestartState
is legal.public boolean hasReported()
public boolean isFailedOrNotExpected()
public boolean isFailedOrExpired()
Copyright © 2016 The Apache Software Foundation. All rights reserved.