Package com.google.cloud.hadoop.fs.gcs
Enum GhfsStatistic
- java.lang.Object
-
- java.lang.Enum<GhfsStatistic>
-
- com.google.cloud.hadoop.fs.gcs.GhfsStatistic
-
- All Implemented Interfaces:
Serializable
,Comparable<GhfsStatistic>
@Unstable public enum GhfsStatistic extends Enum<GhfsStatistic>
Statistics which are collected in GCS. Counter and duration statistics are published inGoogleHadoopFileSystem
and as metrics inGhfsInstrumentation
.Where possible, stream names come from
StreamStatisticNames
andStoreStatisticNames
-
-
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description static com.google.common.collect.ImmutableSet<GhfsStatistic>
VALUES
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GhfsStatistic
fromSymbol(String symbol)
Get a statistic from a symbol.String
getDescription()
The description of the StatisticString
getSymbol()
the name of the statisticGhfsStatisticTypeEnum
getType()
What type is this statistic?String
toString()
The string value is simply the symbol.static GhfsStatistic
valueOf(String name)
Returns the enum constant of this type with the specified name.static GhfsStatistic[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ACTION_HTTP_HEAD_REQUEST
public static final GhfsStatistic ACTION_HTTP_HEAD_REQUEST
HTTP request counters
-
ACTION_HTTP_GET_REQUEST
public static final GhfsStatistic ACTION_HTTP_GET_REQUEST
-
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_POST_REQUEST
public static final GhfsStatistic ACTION_HTTP_POST_REQUEST
-
ACTION_HTTP_DELETE_REQUEST
public static final GhfsStatistic ACTION_HTTP_DELETE_REQUEST
-
ACTION_HTTP_HEAD_REQUEST_FAILURE
public static final GhfsStatistic ACTION_HTTP_HEAD_REQUEST_FAILURE
-
ACTION_HTTP_GET_REQUEST_FAILURE
public static final GhfsStatistic ACTION_HTTP_GET_REQUEST_FAILURE
-
ACTION_HTTP_PUT_REQUEST_FAILURE
public static final GhfsStatistic ACTION_HTTP_PUT_REQUEST_FAILURE
-
ACTION_HTTP_PATCH_REQUEST_FAILURE
public static final GhfsStatistic ACTION_HTTP_PATCH_REQUEST_FAILURE
-
ACTION_HTTP_POST_REQUEST_FAILURE
public static final GhfsStatistic ACTION_HTTP_POST_REQUEST_FAILURE
-
ACTION_HTTP_DELETE_REQUEST_FAILURE
public static final GhfsStatistic ACTION_HTTP_DELETE_REQUEST_FAILURE
-
DIRECTORIES_CREATED
public static final GhfsStatistic DIRECTORIES_CREATED
FileSystem-level statistics
-
DIRECTORIES_DELETED
public static final GhfsStatistic DIRECTORIES_DELETED
-
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_COPY_FROM_LOCAL_FILE
public static final GhfsStatistic INVOCATION_COPY_FROM_LOCAL_FILE
-
INVOCATION_CREATE
public static final GhfsStatistic INVOCATION_CREATE
-
INVOCATION_CREATE_NON_RECURSIVE
public static final GhfsStatistic INVOCATION_CREATE_NON_RECURSIVE
-
INVOCATION_DELETE
public static final GhfsStatistic INVOCATION_DELETE
-
INVOCATION_EXISTS
public static final GhfsStatistic INVOCATION_EXISTS
-
INVOCATION_GET_DELEGATION_TOKEN
public static final GhfsStatistic INVOCATION_GET_DELEGATION_TOKEN
-
INVOCATION_GET_FILE_CHECKSUM
public static final GhfsStatistic INVOCATION_GET_FILE_CHECKSUM
-
INVOCATION_GET_FILE_STATUS
public static final GhfsStatistic INVOCATION_GET_FILE_STATUS
-
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_FILES
public static final GhfsStatistic INVOCATION_LIST_FILES
-
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_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_EXCEPTIONS
public static final GhfsStatistic STREAM_READ_EXCEPTIONS
-
STREAM_READ_OPERATIONS
public static final GhfsStatistic STREAM_READ_OPERATIONS
-
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_READ_TOTAL_BYTES
public static final GhfsStatistic STREAM_READ_TOTAL_BYTES
-
STREAM_WRITE_EXCEPTIONS
public static final GhfsStatistic STREAM_WRITE_EXCEPTIONS
Stream writes
-
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
-
-
Field Detail
-
VALUES
public static final com.google.common.collect.ImmutableSet<GhfsStatistic> VALUES
-
-
Method Detail
-
values
public static GhfsStatistic[] 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 (GhfsStatistic c : GhfsStatistic.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GhfsStatistic 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
-
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 classEnum<GhfsStatistic>
- Returns:
- the symbol of this statistic.
-
getType
public GhfsStatisticTypeEnum getType()
What type is this statistic?- Returns:
- the type.
-
-