Enum Class GhfsStatistic

java.lang.Object
java.lang.Enum<GhfsStatistic>
com.google.cloud.hadoop.fs.gcs.GhfsStatistic
All Implemented Interfaces:
Serializable, Comparable<GhfsStatistic>, Constable

@Unstable public enum GhfsStatistic extends Enum<GhfsStatistic>
Statistics which are collected in GCS. Counter and duration statistics are published in GoogleHadoopFileSystem and as metrics in GhfsInstrumentation.

Where possible, stream names come from StreamStatisticNames and StoreStatisticNames

  • Enum Constant Details

    • ACTION_HTTP_GET_REQUEST

      public static final GhfsStatistic ACTION_HTTP_GET_REQUEST
      HTTP request counters
    • ACTION_HTTP_PUT_REQUEST

      public static final GhfsStatistic ACTION_HTTP_PUT_REQUEST
    • ACTION_HTTP_PATCH_REQUEST

      public static final GhfsStatistic ACTION_HTTP_PATCH_REQUEST
    • ACTION_HTTP_DELETE_REQUEST

      public static final GhfsStatistic ACTION_HTTP_DELETE_REQUEST
    • ACTION_HTTP_POST_REQUEST

      public static final GhfsStatistic ACTION_HTTP_POST_REQUEST
    • DIRECTORIES_CREATED

      public static final GhfsStatistic DIRECTORIES_CREATED
      FileSystem-level statistics
    • FILES_CREATED

      public static final GhfsStatistic FILES_CREATED
    • FILES_DELETED

      public static final GhfsStatistic FILES_DELETED
    • FILES_DELETE_REJECTED

      public static final GhfsStatistic FILES_DELETE_REJECTED
    • INVOCATION_CREATE

      public static final GhfsStatistic INVOCATION_CREATE
    • INVOCATION_DELETE

      public static final GhfsStatistic INVOCATION_DELETE
    • INVOCATION_EXISTS

      public static final GhfsStatistic INVOCATION_EXISTS
    • INVOCATION_GET_FILE_STATUS

      public static final GhfsStatistic INVOCATION_GET_FILE_STATUS
    • INVOCATION_GET_FILE_CHECKSUM

      public static final GhfsStatistic INVOCATION_GET_FILE_CHECKSUM
    • INVOCATION_LIST_STATUS_RESULT_SIZE

      public static final GhfsStatistic INVOCATION_LIST_STATUS_RESULT_SIZE
    • INVOCATION_GLOB_STATUS

      public static final GhfsStatistic INVOCATION_GLOB_STATUS
    • INVOCATION_HFLUSH

      public static final GhfsStatistic INVOCATION_HFLUSH
    • INVOCATION_HSYNC

      public static final GhfsStatistic INVOCATION_HSYNC
    • INVOCATION_LIST_STATUS

      public static final GhfsStatistic INVOCATION_LIST_STATUS
    • INVOCATION_MKDIRS

      public static final GhfsStatistic INVOCATION_MKDIRS
    • INVOCATION_OPEN

      public static final GhfsStatistic INVOCATION_OPEN
    • INVOCATION_RENAME

      public static final GhfsStatistic INVOCATION_RENAME
    • INVOCATION_COPY_FROM_LOCAL_FILE

      public static final GhfsStatistic INVOCATION_COPY_FROM_LOCAL_FILE
    • INVOCATION_CREATE_NON_RECURSIVE

      public static final GhfsStatistic INVOCATION_CREATE_NON_RECURSIVE
    • INVOCATION_GET_DELEGATION_TOKEN

      public static final GhfsStatistic INVOCATION_GET_DELEGATION_TOKEN
    • INVOCATION_LIST_LOCATED_STATUS

      public static final GhfsStatistic INVOCATION_LIST_LOCATED_STATUS
    • STREAM_READ_BYTES

      public static final GhfsStatistic STREAM_READ_BYTES
      Stream reads
    • STREAM_READ_CLOSE_OPERATIONS

      public static final GhfsStatistic STREAM_READ_CLOSE_OPERATIONS
    • STREAM_READ_VECTORED_OPERATIONS

      public static final GhfsStatistic STREAM_READ_VECTORED_OPERATIONS
    • STREAM_READ_VECTORED_EXTRA_READ_BYTES

      public static final GhfsStatistic STREAM_READ_VECTORED_EXTRA_READ_BYTES
    • STREAM_READ_VECTORED_READ_RANGE_DURATION

      public static final GhfsStatistic STREAM_READ_VECTORED_READ_RANGE_DURATION
    • STREAM_READ_VECTORED_READ_INCOMING_RANGES

      public static final GhfsStatistic STREAM_READ_VECTORED_READ_INCOMING_RANGES
    • STREAM_READ_OPERATIONS

      public static final GhfsStatistic STREAM_READ_OPERATIONS
    • STREAM_READ_VECTORED_READ_COMBINED_RANGES

      public static final GhfsStatistic STREAM_READ_VECTORED_READ_COMBINED_RANGES
    • STREAM_READ_OPERATIONS_INCOMPLETE

      public static final GhfsStatistic STREAM_READ_OPERATIONS_INCOMPLETE
    • STREAM_READ_SEEK_BACKWARD_OPERATIONS

      public static final GhfsStatistic STREAM_READ_SEEK_BACKWARD_OPERATIONS
    • STREAM_READ_SEEK_BYTES_BACKWARDS

      public static final GhfsStatistic STREAM_READ_SEEK_BYTES_BACKWARDS
    • STREAM_READ_SEEK_BYTES_SKIPPED

      public static final GhfsStatistic STREAM_READ_SEEK_BYTES_SKIPPED
    • STREAM_READ_SEEK_FORWARD_OPERATIONS

      public static final GhfsStatistic STREAM_READ_SEEK_FORWARD_OPERATIONS
    • STREAM_READ_SEEK_OPERATIONS

      public static final GhfsStatistic STREAM_READ_SEEK_OPERATIONS
    • STREAM_WRITE_BYTES

      public static final GhfsStatistic STREAM_WRITE_BYTES
    • STREAM_WRITE_CLOSE_OPERATIONS

      public static final GhfsStatistic STREAM_WRITE_CLOSE_OPERATIONS
    • STREAM_WRITE_OPERATIONS

      public static final GhfsStatistic STREAM_WRITE_OPERATIONS
    • INVOCATION_XATTR_GET_MAP

      public static final GhfsStatistic INVOCATION_XATTR_GET_MAP
      The XAttr API statistics
    • INVOCATION_XATTR_GET_NAMED

      public static final GhfsStatistic INVOCATION_XATTR_GET_NAMED
    • INVOCATION_XATTR_GET_NAMED_MAP

      public static final GhfsStatistic INVOCATION_XATTR_GET_NAMED_MAP
    • INVOCATION_OP_XATTR_LIST

      public static final GhfsStatistic INVOCATION_OP_XATTR_LIST
    • DELEGATION_TOKENS_ISSUED

      public static final GhfsStatistic DELEGATION_TOKENS_ISSUED
      Delegation token operations
    • GCS_CONNECTOR_TIME

      public static final GhfsStatistic GCS_CONNECTOR_TIME
  • Field Details

    • VALUES

      public static final com.google.common.collect.ImmutableSet<GhfsStatistic> VALUES
  • Method Details

    • values

      public static GhfsStatistic[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static GhfsStatistic valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getSymbol

      public String getSymbol()
      the name of the statistic
    • fromSymbol

      public static GhfsStatistic fromSymbol(String symbol)
      Get a statistic from a symbol.
      Parameters:
      symbol - statistic to look up
      Returns:
      the value or null.
    • getDescription

      public String getDescription()
      The description of the Statistic
    • toString

      public String toString()
      The string value is simply the symbol. This makes this operation very low cost.
      Overrides:
      toString in class Enum<GhfsStatistic>
      Returns:
      the symbol of this statistic.
    • getType

      public StatisticTypeEnum getType()
      What type is this statistic?
      Returns:
      the type.