public static enum HdfsServerConstants.BlockUCState extends Enum<HdfsServerConstants.BlockUCState>
| Enum Constant and Description | 
|---|
| COMMITTEDThe 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.FINALIZEDreplicas has yet been reported by data-nodes themselves. | 
| COMPLETEBlock construction completed. The block has at least the configured minimal replication number of HdfsServerConstants.ReplicaState.FINALIZEDreplica(s), and is not going to be
 modified. | 
| UNDER_CONSTRUCTIONThe block is under construction. It has been recently allocated for write or append. | 
| UNDER_RECOVERYThe block is under recovery. When a file lease expires its last block may not be COMPLETEand 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 © 2008–2023 Apache Software Foundation. All rights reserved.