public static enum HdfsServerConstants.ReplicaState extends Enum<HdfsServerConstants.ReplicaState>
| Enum Constant and Description | 
|---|
| FINALIZEDReplica is finalized. | 
| RBWReplica is being written to. | 
| RURReplica is under recovery. | 
| RWRReplica is waiting to be recovered. | 
| TEMPORARYTemporary 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
IOExceptionpublic void write(DataOutput out) throws IOException
IOExceptionCopyright © 2022 Apache Software Foundation. All rights reserved.