Enum KeyContexts.StateOperation
- java.lang.Object
-
- java.lang.Enum<KeyContexts.StateOperation>
-
- com.h2tcoin.takamakachain.globalContext.KeyContexts.StateOperation
-
- All Implemented Interfaces:
Serializable
,Comparable<KeyContexts.StateOperation>
- Enclosing class:
- KeyContexts
public static enum KeyContexts.StateOperation extends Enum<KeyContexts.StateOperation>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INIT_DEFAULT_CHAIN
init the chain using the default zero blockINIT_ZERO_STATE
clean then init current state to default values and persist resetted property fileLOAD_BLOCK_IN_CHAIN
try to update chain status using the submitted blockMINE_NEXT_BLOCK
call to mine a new block using transaction in current queueNEXT_STEP
compute next stepPERSIST_TO_DEFAULT_FILE
save current state to default (startup) blochchain statePERSIST_TO_FILE
save current state to fileQUERY_STATE
query the nodeREAD_FROM_DEFAULT_FILE
read the current state from the default blockchain stateREAD_FROM_FILE
read current state from fileRESET_CHAIN
delete chain folderRESET_CHAIN_AND_LOG_FOLDER
delete chain folder and log folderSKIP_BLOCK
skip block, never call on uninitialized blockchain
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static KeyContexts.StateOperation
valueOf(String name)
Returns the enum constant of this type with the specified name.static KeyContexts.StateOperation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PERSIST_TO_FILE
public static final KeyContexts.StateOperation PERSIST_TO_FILE
save current state to file
-
READ_FROM_FILE
public static final KeyContexts.StateOperation READ_FROM_FILE
read current state from file
-
INIT_ZERO_STATE
public static final KeyContexts.StateOperation INIT_ZERO_STATE
clean then init current state to default values and persist resetted property file
-
RESET_CHAIN
public static final KeyContexts.StateOperation RESET_CHAIN
delete chain folder
-
RESET_CHAIN_AND_LOG_FOLDER
public static final KeyContexts.StateOperation RESET_CHAIN_AND_LOG_FOLDER
delete chain folder and log folder
-
PERSIST_TO_DEFAULT_FILE
public static final KeyContexts.StateOperation PERSIST_TO_DEFAULT_FILE
save current state to default (startup) blochchain state
-
READ_FROM_DEFAULT_FILE
public static final KeyContexts.StateOperation READ_FROM_DEFAULT_FILE
read the current state from the default blockchain state
-
MINE_NEXT_BLOCK
public static final KeyContexts.StateOperation MINE_NEXT_BLOCK
call to mine a new block using transaction in current queue
-
NEXT_STEP
public static final KeyContexts.StateOperation NEXT_STEP
compute next step
-
SKIP_BLOCK
public static final KeyContexts.StateOperation SKIP_BLOCK
skip block, never call on uninitialized blockchain
-
QUERY_STATE
public static final KeyContexts.StateOperation QUERY_STATE
query the node
-
INIT_DEFAULT_CHAIN
public static final KeyContexts.StateOperation INIT_DEFAULT_CHAIN
init the chain using the default zero block
-
LOAD_BLOCK_IN_CHAIN
public static final KeyContexts.StateOperation LOAD_BLOCK_IN_CHAIN
try to update chain status using the submitted block
-
-
Method Detail
-
values
public static KeyContexts.StateOperation[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (KeyContexts.StateOperation c : KeyContexts.StateOperation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static KeyContexts.StateOperation valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-