Package com.google.cloud.hadoop.fs.gcs
Enum Class GhfsStatistic
- All Implemented Interfaces:
Serializable,Comparable<GhfsStatistic>,Constable
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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionHTTP request countersDelegation token operationsFileSystem-level statisticsThe XAttr API statisticsStream reads -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.google.common.collect.ImmutableSet<GhfsStatistic> -
Method Summary
Modifier and TypeMethodDescriptionstatic GhfsStatisticfromSymbol(String symbol) Get a statistic from a symbol.The description of the Statisticthe name of the statisticgetType()What type is this statistic?toString()The string value is simply the symbol.static GhfsStatisticReturns the enum constant of this class with the specified name.static GhfsStatistic[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ACTION_HTTP_GET_REQUEST
HTTP request counters -
ACTION_HTTP_PUT_REQUEST
-
ACTION_HTTP_PATCH_REQUEST
-
ACTION_HTTP_DELETE_REQUEST
-
ACTION_HTTP_POST_REQUEST
-
DIRECTORIES_CREATED
FileSystem-level statistics -
FILES_CREATED
-
FILES_DELETED
-
FILES_DELETE_REJECTED
-
INVOCATION_CREATE
-
INVOCATION_DELETE
-
INVOCATION_EXISTS
-
INVOCATION_GET_FILE_STATUS
-
INVOCATION_GET_FILE_CHECKSUM
-
INVOCATION_LIST_STATUS_RESULT_SIZE
-
INVOCATION_GLOB_STATUS
-
INVOCATION_HFLUSH
-
INVOCATION_HSYNC
-
INVOCATION_LIST_STATUS
-
INVOCATION_MKDIRS
-
INVOCATION_OPEN
-
INVOCATION_RENAME
-
INVOCATION_COPY_FROM_LOCAL_FILE
-
INVOCATION_CREATE_NON_RECURSIVE
-
INVOCATION_GET_DELEGATION_TOKEN
-
INVOCATION_LIST_LOCATED_STATUS
-
STREAM_READ_BYTES
Stream reads -
STREAM_READ_CLOSE_OPERATIONS
-
STREAM_READ_VECTORED_OPERATIONS
-
STREAM_READ_VECTORED_EXTRA_READ_BYTES
-
STREAM_READ_VECTORED_READ_RANGE_DURATION
-
STREAM_READ_VECTORED_READ_INCOMING_RANGES
-
STREAM_READ_OPERATIONS
-
STREAM_READ_VECTORED_READ_COMBINED_RANGES
-
STREAM_READ_OPERATIONS_INCOMPLETE
-
STREAM_READ_SEEK_BACKWARD_OPERATIONS
-
STREAM_READ_SEEK_BYTES_BACKWARDS
-
STREAM_READ_SEEK_BYTES_SKIPPED
-
STREAM_READ_SEEK_FORWARD_OPERATIONS
-
STREAM_READ_SEEK_OPERATIONS
-
STREAM_WRITE_BYTES
-
STREAM_WRITE_CLOSE_OPERATIONS
-
STREAM_WRITE_OPERATIONS
-
INVOCATION_XATTR_GET_MAP
The XAttr API statistics -
INVOCATION_XATTR_GET_NAMED
-
INVOCATION_XATTR_GET_NAMED_MAP
-
INVOCATION_OP_XATTR_LIST
-
DELEGATION_TOKENS_ISSUED
Delegation token operations -
GCS_CONNECTOR_TIME
-
-
Field Details
-
VALUES
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getSymbol
the name of the statistic -
fromSymbol
Get a statistic from a symbol.- Parameters:
symbol- statistic to look up- Returns:
- the value or null.
-
getDescription
The description of the Statistic -
toString
The string value is simply the symbol. This makes this operation very low cost.- Overrides:
toStringin classEnum<GhfsStatistic>- Returns:
- the symbol of this statistic.
-
getType
What type is this statistic?- Returns:
- the type.
-