|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<RunState>
com.bigdata.journal.RunState
public enum RunState
Enum of transaction run states.
| Enum Constant Summary | |
|---|---|
Aborted
|
|
Active
|
|
Committed
|
|
Prepared
|
|
| Method Summary | |
|---|---|
boolean |
isTransitionAllowed(RunState newval)
Return true iff a transition is allowable from the current
RunState to the proposed RunState. |
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. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final RunState Active
public static final RunState Prepared
public static final RunState Committed
public static final RunState Aborted
| Method Detail |
|---|
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 name
NullPointerException - if the argument is nullpublic String toString()
toString in class Enum<RunState>public 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||