public static enum HdfsServerConstants.BlockUCState extends Enum<HdfsServerConstants.BlockUCState>
Enum Constant and Description |
---|
COMMITTED
The block is committed.
The client reported that all bytes are written to data-nodes with the given generation stamp and block length, but no HdfsServerConstants.ReplicaState.FINALIZED
replicas has yet been reported by data-nodes themselves. |
COMPLETE
Block construction completed.
The block has at least the configured minimal replication number of HdfsServerConstants.ReplicaState.FINALIZED replica(s), and is not going to be
modified. |
UNDER_CONSTRUCTION
The block is under construction.
It has been recently allocated for write or append. |
UNDER_RECOVERY
The block is under recovery.
When a file lease expires its last block may not be COMPLETE
and needs to go through a recovery procedure,
which synchronizes the existing replicas contents. |
Modifier and Type | Method and Description |
---|---|
static HdfsServerConstants.BlockUCState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HdfsServerConstants.BlockUCState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HdfsServerConstants.BlockUCState COMPLETE
HdfsServerConstants.ReplicaState.FINALIZED
replica(s), and is not going to be
modified.
NOTE, in some special cases, a block may be forced to COMPLETE state,
even if it doesn't have required minimal replications.public static final HdfsServerConstants.BlockUCState UNDER_CONSTRUCTION
public static final HdfsServerConstants.BlockUCState UNDER_RECOVERY
COMPLETE
and needs to go through a recovery procedure,
which synchronizes the existing replicas contents.public static final HdfsServerConstants.BlockUCState COMMITTED
HdfsServerConstants.ReplicaState.FINALIZED
replicas has yet been reported by data-nodes themselves.public static HdfsServerConstants.BlockUCState[] values()
for (HdfsServerConstants.BlockUCState c : HdfsServerConstants.BlockUCState.values()) System.out.println(c);
public static HdfsServerConstants.BlockUCState 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 nullCopyright © 2017 Apache Software Foundation. All Rights Reserved.