Enum GridRestCommand
- java.lang.Object
-
- java.lang.Enum<GridRestCommand>
-
- org.apache.ignite.internal.processors.rest.GridRestCommand
-
- All Implemented Interfaces:
Serializable,Comparable<GridRestCommand>
public enum GridRestCommand extends Enum<GridRestCommand>
Supported commands.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADD_USERATOMIC_DECREMENTDecrement.ATOMIC_INCREMENTIncrement.AUTHENTICATEBASELINE_ADDBASELINE_CURRENT_STATEBASELINE_REMOVEBASELINE_SETCACHE_ADDStore value in cache if it doesn't exist.CACHE_APPENDAppend.CACHE_CASCompare and set.CACHE_CLEARClear the specified cache.CACHE_CONTAINS_KEYContains cached value.CACHE_CONTAINS_KEYSContains cached values.CACHE_GETGet cached value.CACHE_GET_ALLGet several cached values.CACHE_GET_AND_PUTStore value in cache and return previous value.CACHE_GET_AND_PUT_IF_ABSENTStore value in cache and return previous value.CACHE_GET_AND_REMOVERemove value from cache.CACHE_GET_AND_REPLACEReplace cache value only if there is currently a mapping for it.CACHE_METADATACache metadata.CACHE_METRICSCache metrics.CACHE_PREPENDPrepend.CACHE_PUTStore value in cache.CACHE_PUT_ALLStore several values in cache.CACHE_PUT_IF_ABSENTStore value in cache.CACHE_REMOVERemove value from cache.CACHE_REMOVE_ALLRemove several values from cache.CACHE_REMOVE_VALUERemove value from cache.CACHE_REPLACEReplace cache value only if there is currently a mapping for it.CACHE_REPLACE_VALUEReplace cache value only if there is currently a mapping for it.CACHE_SIZECache size.CACHE_UPDATE_TLLSet TTL for the key.CLOSE_SQL_QUERYClose query.CLUSTER_ACTIVATEDeprecated.UseCLUSTER_SET_STATEwithClusterState.ACTIVEinstead.CLUSTER_ACTIVEDeprecated.UseCLUSTER_SET_STATEwithClusterState.ACTIVEinstead.CLUSTER_CURRENT_STATEDeprecated.UseCLUSTER_STATEinstead.CLUSTER_DEACTIVATEDeprecated.UseCLUSTER_SET_STATEwithClusterState.INACTIVEinstead.CLUSTER_INACTIVEDeprecated.UseCLUSTER_SET_STATEwithClusterState.INACTIVEinstead.CLUSTER_NAMECLUSTER_SET_STATECLUSTER_STATEDATA_REGION_METRICSData region metrics.DESTROY_CACHEStops dynamically started cache.EXETask execution .EXECUTE_SCAN_QUERYExecute scan query.EXECUTE_SQL_FIELDS_QUERYExecute sql fields query.EXECUTE_SQL_QUERYExecute sql query.FETCH_SQL_QUERYFetch query results.GET_OR_CREATE_CACHEGet or create cache.LOGLog.NAMEName.NODESingle node info.NODE_STATE_BEFORE_STARTNode state before its start.NOOPNo-op.PROBEprobe.QUITQuit.REMOVE_USERRESULTTask execution .TOPOLOGYGrid topology.UPDATE_USERVERSIONVersion.WARM_UPWarm-up.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static @Nullable GridRestCommandfromKey(String key)static @Nullable GridRestCommandfromOrdinal(int ord)Stringkey()static GridRestCommandvalueOf(String name)Returns the enum constant of this type with the specified name.static GridRestCommand[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CACHE_GET
public static final GridRestCommand CACHE_GET
Get cached value.
-
CACHE_CONTAINS_KEY
public static final GridRestCommand CACHE_CONTAINS_KEY
Contains cached value.
-
CACHE_CONTAINS_KEYS
public static final GridRestCommand CACHE_CONTAINS_KEYS
Contains cached values.
-
CACHE_GET_ALL
public static final GridRestCommand CACHE_GET_ALL
Get several cached values.
-
CACHE_GET_AND_PUT
public static final GridRestCommand CACHE_GET_AND_PUT
Store value in cache and return previous value.
-
CACHE_GET_AND_PUT_IF_ABSENT
public static final GridRestCommand CACHE_GET_AND_PUT_IF_ABSENT
Store value in cache and return previous value.
-
CACHE_PUT
public static final GridRestCommand CACHE_PUT
Store value in cache.
-
CACHE_PUT_IF_ABSENT
public static final GridRestCommand CACHE_PUT_IF_ABSENT
Store value in cache.
-
CACHE_ADD
public static final GridRestCommand CACHE_ADD
Store value in cache if it doesn't exist.
-
CACHE_PUT_ALL
public static final GridRestCommand CACHE_PUT_ALL
Store several values in cache.
-
CACHE_REMOVE
public static final GridRestCommand CACHE_REMOVE
Remove value from cache.
-
CACHE_REMOVE_VALUE
public static final GridRestCommand CACHE_REMOVE_VALUE
Remove value from cache.
-
CACHE_GET_AND_REMOVE
public static final GridRestCommand CACHE_GET_AND_REMOVE
Remove value from cache.
-
CACHE_REMOVE_ALL
public static final GridRestCommand CACHE_REMOVE_ALL
Remove several values from cache.
-
CACHE_CLEAR
public static final GridRestCommand CACHE_CLEAR
Clear the specified cache.
-
CACHE_REPLACE
public static final GridRestCommand CACHE_REPLACE
Replace cache value only if there is currently a mapping for it.
-
CACHE_REPLACE_VALUE
public static final GridRestCommand CACHE_REPLACE_VALUE
Replace cache value only if there is currently a mapping for it.
-
CACHE_GET_AND_REPLACE
public static final GridRestCommand CACHE_GET_AND_REPLACE
Replace cache value only if there is currently a mapping for it.
-
CACHE_CAS
public static final GridRestCommand CACHE_CAS
Compare and set.
-
CACHE_APPEND
public static final GridRestCommand CACHE_APPEND
Append.
-
CACHE_PREPEND
public static final GridRestCommand CACHE_PREPEND
Prepend.
-
CACHE_METRICS
public static final GridRestCommand CACHE_METRICS
Cache metrics.
-
CACHE_SIZE
public static final GridRestCommand CACHE_SIZE
Cache size.
-
CACHE_UPDATE_TLL
public static final GridRestCommand CACHE_UPDATE_TLL
Set TTL for the key.
-
CACHE_METADATA
public static final GridRestCommand CACHE_METADATA
Cache metadata.
-
ATOMIC_INCREMENT
public static final GridRestCommand ATOMIC_INCREMENT
Increment.
-
ATOMIC_DECREMENT
public static final GridRestCommand ATOMIC_DECREMENT
Decrement.
-
TOPOLOGY
public static final GridRestCommand TOPOLOGY
Grid topology.
-
NODE
public static final GridRestCommand NODE
Single node info.
-
EXE
public static final GridRestCommand EXE
Task execution .
-
RESULT
public static final GridRestCommand RESULT
Task execution .
-
VERSION
public static final GridRestCommand VERSION
Version.
-
NAME
public static final GridRestCommand NAME
Name.
-
LOG
public static final GridRestCommand LOG
Log.
-
NOOP
public static final GridRestCommand NOOP
No-op.
-
QUIT
public static final GridRestCommand QUIT
Quit.
-
GET_OR_CREATE_CACHE
public static final GridRestCommand GET_OR_CREATE_CACHE
Get or create cache.
-
DESTROY_CACHE
public static final GridRestCommand DESTROY_CACHE
Stops dynamically started cache.
-
EXECUTE_SQL_QUERY
public static final GridRestCommand EXECUTE_SQL_QUERY
Execute sql query.
-
EXECUTE_SQL_FIELDS_QUERY
public static final GridRestCommand EXECUTE_SQL_FIELDS_QUERY
Execute sql fields query.
-
EXECUTE_SCAN_QUERY
public static final GridRestCommand EXECUTE_SCAN_QUERY
Execute scan query.
-
FETCH_SQL_QUERY
public static final GridRestCommand FETCH_SQL_QUERY
Fetch query results.
-
CLOSE_SQL_QUERY
public static final GridRestCommand CLOSE_SQL_QUERY
Close query.
-
CLUSTER_ACTIVE
@Deprecated public static final GridRestCommand CLUSTER_ACTIVE
Deprecated.UseCLUSTER_SET_STATEwithClusterState.ACTIVEinstead.
-
CLUSTER_INACTIVE
@Deprecated public static final GridRestCommand CLUSTER_INACTIVE
Deprecated.UseCLUSTER_SET_STATEwithClusterState.INACTIVEinstead.
-
CLUSTER_ACTIVATE
@Deprecated public static final GridRestCommand CLUSTER_ACTIVATE
Deprecated.UseCLUSTER_SET_STATEwithClusterState.ACTIVEinstead.
-
CLUSTER_DEACTIVATE
@Deprecated public static final GridRestCommand CLUSTER_DEACTIVATE
Deprecated.UseCLUSTER_SET_STATEwithClusterState.INACTIVEinstead.
-
CLUSTER_CURRENT_STATE
@Deprecated public static final GridRestCommand CLUSTER_CURRENT_STATE
Deprecated.UseCLUSTER_STATEinstead.
-
CLUSTER_NAME
public static final GridRestCommand CLUSTER_NAME
-
CLUSTER_STATE
public static final GridRestCommand CLUSTER_STATE
-
CLUSTER_SET_STATE
public static final GridRestCommand CLUSTER_SET_STATE
-
BASELINE_CURRENT_STATE
public static final GridRestCommand BASELINE_CURRENT_STATE
-
BASELINE_SET
public static final GridRestCommand BASELINE_SET
-
BASELINE_ADD
public static final GridRestCommand BASELINE_ADD
-
BASELINE_REMOVE
public static final GridRestCommand BASELINE_REMOVE
-
AUTHENTICATE
public static final GridRestCommand AUTHENTICATE
-
ADD_USER
public static final GridRestCommand ADD_USER
-
REMOVE_USER
public static final GridRestCommand REMOVE_USER
-
UPDATE_USER
public static final GridRestCommand UPDATE_USER
-
DATA_REGION_METRICS
public static final GridRestCommand DATA_REGION_METRICS
Data region metrics.
-
NODE_STATE_BEFORE_START
public static final GridRestCommand NODE_STATE_BEFORE_START
Node state before its start.
-
WARM_UP
public static final GridRestCommand WARM_UP
Warm-up.
-
PROBE
public static final GridRestCommand PROBE
probe.
-
-
Method Detail
-
values
public static GridRestCommand[] 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 (GridRestCommand c : GridRestCommand.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GridRestCommand 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
-
fromOrdinal
@Nullable public static @Nullable GridRestCommand fromOrdinal(int ord)
- Parameters:
ord- Byte to convert to enum.- Returns:
- Enum.
-
fromKey
@Nullable public static @Nullable GridRestCommand fromKey(String key)
- Parameters:
key- Key.- Returns:
- Command.
-
key
public String key()
- Returns:
- Command key.
-
-