Class DatanodeDescriptor.LeavingServiceStatus
java.lang.Object
org.apache.hadoop.hdfs.server.blockmanagement.DatanodeDescriptor.LeavingServiceStatus
- Enclosing class:
- DatanodeDescriptor
Leaving service status.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
LeavingServiceStatus
public LeavingServiceStatus()
-
-
Method Details
-
getUnderReplicatedBlocks
public int getUnderReplicatedBlocks()- Returns:
- the number of under-replicated blocks
-
getOutOfServiceOnlyReplicas
public int getOutOfServiceOnlyReplicas()- Returns:
- the number of blocks with out-of-service-only replicas
-
getUnderReplicatedInOpenFiles
public int getUnderReplicatedInOpenFiles()- Returns:
- the number of under-replicated blocks in open files
-
getOpenFiles
- Returns:
- the collection of under-replicated blocks in open files
-
setStartTime
public void setStartTime(long time) Set start time -
getStartTime
public long getStartTime()- Returns:
- start time
-