public enum TOperationState extends Enum<TOperationState> implements org.apache.thrift.TEnum
Enum Constant and Description |
---|
CANCELED_STATE |
CLOSED_STATE |
ERROR_STATE |
FINISHED_STATE |
INITIALIZED_STATE |
PENDING_STATE |
RUNNING_STATE |
TIMEDOUT_STATE |
UKNOWN_STATE |
Modifier and Type | Method and Description |
---|---|
static TOperationState |
findByValue(int value)
Find a the enum type by its integer value, as defined in the Thrift IDL.
|
int |
getValue()
Get the integer value of this enum value, as defined in the Thrift IDL.
|
static TOperationState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TOperationState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TOperationState INITIALIZED_STATE
public static final TOperationState RUNNING_STATE
public static final TOperationState FINISHED_STATE
public static final TOperationState CANCELED_STATE
public static final TOperationState CLOSED_STATE
public static final TOperationState ERROR_STATE
public static final TOperationState UKNOWN_STATE
public static final TOperationState PENDING_STATE
public static final TOperationState TIMEDOUT_STATE
public static TOperationState[] values()
for (TOperationState c : TOperationState.values()) System.out.println(c);
public static TOperationState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getValue()
getValue
in interface org.apache.thrift.TEnum
public static TOperationState findByValue(int value)
Copyright © 2016 The Apache Software Foundation. All rights reserved.