public static enum HdfsServerConstants.ReplicaState extends Enum<HdfsServerConstants.ReplicaState>
Enum Constant and Description |
---|
FINALIZED
Replica is finalized.
|
RBW
Replica is being written to.
|
RUR
Replica is under recovery.
|
RWR
Replica is waiting to be recovered.
|
TEMPORARY
Temporary replica: created for replication and relocation only.
|
Modifier and Type | Method and Description |
---|---|
static HdfsServerConstants.ReplicaState |
getState(int v) |
int |
getValue() |
static HdfsServerConstants.ReplicaState |
read(DataInput in)
Read from in
|
static HdfsServerConstants.ReplicaState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HdfsServerConstants.ReplicaState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
void |
write(DataOutput out)
Write to out
|
public static final HdfsServerConstants.ReplicaState FINALIZED
public static final HdfsServerConstants.ReplicaState RBW
public static final HdfsServerConstants.ReplicaState RWR
public static final HdfsServerConstants.ReplicaState RUR
public static final HdfsServerConstants.ReplicaState TEMPORARY
public static HdfsServerConstants.ReplicaState[] values()
for (HdfsServerConstants.ReplicaState c : HdfsServerConstants.ReplicaState.values()) System.out.println(c);
public static HdfsServerConstants.ReplicaState 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()
public static HdfsServerConstants.ReplicaState getState(int v)
public static HdfsServerConstants.ReplicaState read(DataInput in) throws IOException
IOException
public void write(DataOutput out) throws IOException
IOException
Copyright © 2017 Apache Software Foundation. All Rights Reserved.