Enum OperationType
- java.lang.Object
-
- java.lang.Enum<OperationType>
-
- org.apache.ignite.internal.processors.performancestatistics.OperationType
-
- All Implemented Interfaces:
Serializable,Comparable<OperationType>
public enum OperationType extends Enum<OperationType>
Performance statistics operation type.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CACHE_GETCache get.CACHE_GET_ALLCache get all.CACHE_GET_AND_PUTCache get and put.CACHE_GET_AND_REMOVECache get and remove.CACHE_INVOKECache invoke.CACHE_INVOKE_ALLCache invoke all.CACHE_LOCKCache lock.CACHE_PUTCache put.CACHE_PUT_ALLCache put all.CACHE_REMOVECache remove.CACHE_REMOVE_ALLCache remove all.CACHE_STARTCache start.CHECKPOINTCheckpoint.JOBJob.PAGES_WRITE_THROTTLEPages write throttle.QUERYQuery.QUERY_PROPERTYCustom query property.QUERY_READSQuery reads.QUERY_ROWSCount of processed by query rows.TASKTask.TX_COMMITTransaction commit.TX_ROLLBACKTransaction rollback.
-
Field Summary
Fields Modifier and Type Field Description static EnumSet<OperationType>CACHE_OPSCache operations.static EnumSet<OperationType>TX_OPSTransaction operations.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleancacheOperation(OperationType op)static intcacheRecordSize()static intcacheStartRecordSize(int nameLen, boolean cached)static intcheckpointRecordSize()byteid()static intjobRecordSize()static @Nullable OperationTypeof(byte id)static intpagesWriteThrottleRecordSize()static intqueryPropertyRecordSize(int nameLen, boolean nameCached, int valLen, boolean valCached)static intqueryReadsRecordSize()static intqueryRecordSize(int textLen, boolean cached)static intqueryRowsRecordSize(int actionLen, boolean cached)static inttaskRecordSize(int nameLen, boolean cached)static booleantransactionOperation(OperationType op)static inttransactionRecordSize(int cachesIdsCnt)static OperationTypevalueOf(String name)Returns the enum constant of this type with the specified name.static OperationType[]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 OperationType CACHE_GET
Cache get.
-
CACHE_PUT
public static final OperationType CACHE_PUT
Cache put.
-
CACHE_REMOVE
public static final OperationType CACHE_REMOVE
Cache remove.
-
CACHE_GET_AND_PUT
public static final OperationType CACHE_GET_AND_PUT
Cache get and put.
-
CACHE_GET_AND_REMOVE
public static final OperationType CACHE_GET_AND_REMOVE
Cache get and remove.
-
CACHE_INVOKE
public static final OperationType CACHE_INVOKE
Cache invoke.
-
CACHE_LOCK
public static final OperationType CACHE_LOCK
Cache lock.
-
CACHE_GET_ALL
public static final OperationType CACHE_GET_ALL
Cache get all.
-
CACHE_PUT_ALL
public static final OperationType CACHE_PUT_ALL
Cache put all.
-
CACHE_REMOVE_ALL
public static final OperationType CACHE_REMOVE_ALL
Cache remove all.
-
CACHE_INVOKE_ALL
public static final OperationType CACHE_INVOKE_ALL
Cache invoke all.
-
TX_COMMIT
public static final OperationType TX_COMMIT
Transaction commit.
-
TX_ROLLBACK
public static final OperationType TX_ROLLBACK
Transaction rollback.
-
QUERY
public static final OperationType QUERY
Query.
-
QUERY_READS
public static final OperationType QUERY_READS
Query reads.
-
TASK
public static final OperationType TASK
Task.
-
JOB
public static final OperationType JOB
Job.
-
CACHE_START
public static final OperationType CACHE_START
Cache start.
-
CHECKPOINT
public static final OperationType CHECKPOINT
Checkpoint.
-
PAGES_WRITE_THROTTLE
public static final OperationType PAGES_WRITE_THROTTLE
Pages write throttle.
-
QUERY_ROWS
public static final OperationType QUERY_ROWS
Count of processed by query rows.
-
QUERY_PROPERTY
public static final OperationType QUERY_PROPERTY
Custom query property.
-
-
Field Detail
-
CACHE_OPS
public static final EnumSet<OperationType> CACHE_OPS
Cache operations.
-
TX_OPS
public static final EnumSet<OperationType> TX_OPS
Transaction operations.
-
-
Method Detail
-
values
public static OperationType[] 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 (OperationType c : OperationType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OperationType 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
-
id
public byte id()
- Returns:
- Unique operation identifier.
-
of
@Nullable public static @Nullable OperationType of(byte id)
- Returns:
- Operation type of given identifier.
-
cacheOperation
public static boolean cacheOperation(OperationType op)
- Returns:
Trueif cache operation.
-
transactionOperation
public static boolean transactionOperation(OperationType op)
- Returns:
Trueif transaction operation.
-
cacheStartRecordSize
public static int cacheStartRecordSize(int nameLen, boolean cached)- Parameters:
nameLen- Cache name length.cached-Trueif cache name cached.- Returns:
- Cache start record size.
-
cacheRecordSize
public static int cacheRecordSize()
- Returns:
- Cache record size.
-
transactionRecordSize
public static int transactionRecordSize(int cachesIdsCnt)
- Parameters:
cachesIdsCnt- Cache identifiers size.- Returns:
- Transaction record size.
-
queryRecordSize
public static int queryRecordSize(int textLen, boolean cached)- Parameters:
textLen- Query text length.cached-Trueif query text cached.- Returns:
- Query record size.
-
queryReadsRecordSize
public static int queryReadsRecordSize()
- Returns:
- Query reads record size.
-
queryRowsRecordSize
public static int queryRowsRecordSize(int actionLen, boolean cached)- Parameters:
actionLen- Rows action length.cached-Trueif action is cached.- Returns:
- Query rows record size.
-
queryPropertyRecordSize
public static int queryPropertyRecordSize(int nameLen, boolean nameCached, int valLen, boolean valCached)- Parameters:
nameLen- Propery name length.nameCached-Trueif property name is cached.valLen- Propery value length.valCached-Trueif property value is cached.- Returns:
- Query property record size.
-
taskRecordSize
public static int taskRecordSize(int nameLen, boolean cached)- Parameters:
nameLen- Task name length.cached-Trueif task name cached.- Returns:
- Task record size.
-
jobRecordSize
public static int jobRecordSize()
- Returns:
- Job record size.
-
checkpointRecordSize
public static int checkpointRecordSize()
- Returns:
- Checkpoint record size.
-
pagesWriteThrottleRecordSize
public static int pagesWriteThrottleRecordSize()
- Returns:
- Pages write throttle record size.
-
-