public static enum HdfsProtos.ReplicaStateProto extends Enum<HdfsProtos.ReplicaStateProto> implements com.google.protobuf.ProtocolMessageEnum
hadoop.hdfs.ReplicaStateProto
State of a block replica at a datanode
Enum Constant and Description |
---|
FINALIZED
FINALIZED = 0; |
RBW
RBW = 1; |
RUR
RUR = 3; |
RWR
RWR = 2; |
TEMPORARY
TEMPORARY = 4; |
Modifier and Type | Field and Description |
---|---|
static int |
FINALIZED_VALUE
FINALIZED = 0; |
static int |
RBW_VALUE
RBW = 1; |
static int |
RUR_VALUE
RUR = 3; |
static int |
RWR_VALUE
RWR = 2; |
static int |
TEMPORARY_VALUE
TEMPORARY = 4; |
Modifier and Type | Method and Description |
---|---|
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<HdfsProtos.ReplicaStateProto> |
internalGetValueMap() |
static HdfsProtos.ReplicaStateProto |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static HdfsProtos.ReplicaStateProto |
valueOf(int value) |
static HdfsProtos.ReplicaStateProto |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HdfsProtos.ReplicaStateProto[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HdfsProtos.ReplicaStateProto FINALIZED
FINALIZED = 0;
State of a replica when it is not modified
public static final HdfsProtos.ReplicaStateProto RBW
RBW = 1;
State of replica that is being written to
public static final HdfsProtos.ReplicaStateProto RWR
RWR = 2;
State of replica that is waiting to be recovered
public static final HdfsProtos.ReplicaStateProto RUR
RUR = 3;
State of replica that is under recovery
public static final HdfsProtos.ReplicaStateProto TEMPORARY
TEMPORARY = 4;
State of replica that is created for replication
public static final int FINALIZED_VALUE
FINALIZED = 0;
State of a replica when it is not modified
public static final int RBW_VALUE
RBW = 1;
State of replica that is being written to
public static final int RWR_VALUE
RWR = 2;
State of replica that is waiting to be recovered
public static final int RUR_VALUE
RUR = 3;
State of replica that is under recovery
public static final int TEMPORARY_VALUE
TEMPORARY = 4;
State of replica that is created for replication
public static HdfsProtos.ReplicaStateProto[] values()
for (HdfsProtos.ReplicaStateProto c : HdfsProtos.ReplicaStateProto.values()) System.out.println(c);
public static HdfsProtos.ReplicaStateProto 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 final int getNumber()
getNumber
in interface com.google.protobuf.Internal.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
public static HdfsProtos.ReplicaStateProto valueOf(int value)
public static com.google.protobuf.Internal.EnumLiteMap<HdfsProtos.ReplicaStateProto> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface com.google.protobuf.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static HdfsProtos.ReplicaStateProto valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2013 Apache Software Foundation. All rights reserved.