public enum RunState extends Enum<RunState>
Enum Constant and Description |
---|
Aborted |
Active |
Committed |
Prepared |
Modifier and Type | Method and Description |
---|---|
boolean |
isTransitionAllowed(RunState newval)
|
String |
toString() |
static RunState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RunState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RunState Active
public static final RunState Prepared
public static final RunState Committed
public static final RunState Aborted
public static RunState[] values()
for (RunState c : RunState.values()) System.out.println(c);
public static RunState 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 boolean isTransitionAllowed(RunState newval)
true
iff a transition is allowable from the current
RunState
to the proposed RunState
.
Note: Only certain state transitions are allowed. These are: {Active->Prepared, Active->Aborted, Active->Committed; Prepared->Committed, Prepared->Aborted}. Both Committed and Aborted are absorbing states.
Note: A transition to the same state is always allowed.
newval
- The proposed RunState
.true
iff that state transition is allowed.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.