Enum OperationType

    • 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_READS

        public static final OperationType QUERY_READS
        Query reads.
      • 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.
    • 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 name
        NullPointerException - 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:
        True if cache operation.
      • transactionOperation

        public static boolean transactionOperation​(OperationType op)
        Returns:
        True if transaction operation.
      • cacheStartRecordSize

        public static int cacheStartRecordSize​(int nameLen,
                                               boolean cached)
        Parameters:
        nameLen - Cache name length.
        cached - True if 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 - True if 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 - True if 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 - True if property name is cached.
        valLen - Propery value length.
        valCached - True if property value is cached.
        Returns:
        Query property record size.
      • taskRecordSize

        public static int taskRecordSize​(int nameLen,
                                         boolean cached)
        Parameters:
        nameLen - Task name length.
        cached - True if 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.