View Javadoc

1   package com.atlassian.vcache.internal;
2   
3   /**
4    * Represents all the metrics. All times are measured in nanoseconds.
5    *
6    * @since 1.0.0
7    */
8   public enum MetricLabel {
9       NUMBER_OF_BYTES_MARSHALLED("Number of bytes marshalled"),
10      NUMBER_OF_BYTES_UNMARSHALLED("Number of bytes unmarshalled"),
11      NUMBER_OF_FAILED_GET("Number of failed 'get' operations on an external cache"),
12      NUMBER_OF_FAILED_IDENTIFIED_GET("Number of failed 'identified get' operations on an external cache"),
13      NUMBER_OF_FAILED_MARSHALL("Number of failed 'marshall' operations on a Marshaller"),
14      NUMBER_OF_FAILED_UNMARSHALL("Number of failed 'unmarshall' operations on a Marshaller"),
15      NUMBER_OF_FAILED_IDENTIFIED_REMOVE("Number of failed 'identified remove' operations on an external cache"),
16      NUMBER_OF_FAILED_IDENTIFIED_REPLACE("Number of failed 'identified replace' operations on an external cache"),
17      NUMBER_OF_FAILED_PUT("Number of failed 'put' operations on an external cache"),
18      NUMBER_OF_FAILED_REMOVE("Number of failed 'remove' operations on an external cache"),
19      NUMBER_OF_FAILED_REMOVE_ALL("Number of failed 'removeAll' operations on an external cache"),
20      NUMBER_OF_FACTORY_KEYS("Number of keys passed to a factory"),
21      NUMBER_OF_HITS("Number of successful hits to a cache"),
22      NUMBER_OF_MISSES("Number of missed lookups to a cache"),
23      NUMBER_OF_REMOTE_GET("Number of remote 'get' operations performed to non-direct external cache"),
24      TIMED_FACTORY_CALL("Calls to a factory to create values"),
25      TIMED_SUPPLIER_CALL("Calls to Supplier<> to create values"),
26      TIMED_GET_CALL("Calls to 'get' operations"),
27      TIMED_GET_KEYS_CALL("Calls to 'getKeys' operations"),
28      TIMED_IDENTIFIED_GET_CALL("Calls to 'identified get' operations"),
29      TIMED_IDENTIFIED_REMOVE_CALL("Calls to 'identified remove' operations"),
30      TIMED_IDENTIFIED_REPLACE_CALL("Calls to 'identified replace' operations"),
31      TIMED_MARSHALL_CALL("Calls to 'marshall' operations"),
32      TIMED_PUT_CALL("Calls to 'put' operations"),
33      TIMED_REMOVE_CALL("Calls to 'remove' operations"),
34      TIMED_REMOVE_ALL_CALL("Calls to 'remove all' operations"),
35      TIMED_UNMARSHALL_CALL("Calls to 'unmarshall' operations"),
36      TIMED_TRANSACTION_DISCARD_CALL("Calls to 'transaction discard' operations"),
37      TIMED_TRANSACTION_SYNC_CALL("Calls to 'transaction sync' operations");
38  
39      private final String description;
40  
41      MetricLabel(String description) {
42          this.description = description;
43      }
44  
45      public String getDescription() {
46          return description;
47      }
48  }