Class BlockPoolSlice
java.lang.Object
org.apache.hadoop.hdfs.server.datanode.fsdataset.impl.BlockPoolSlice
A block pool slice represents a portion of a block pool stored on a volume.
Taken together, all BlockPoolSlices sharing a block pool ID across a
cluster represent a single block pool.
This class is synchronized by
FsVolumeImpl.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic intReturn the size of fork pool used for adding replica in map.org.apache.hadoop.fs.GetSpaceUsedlongstatic voidtoString()voidupdateDfsUsageConfig(Long interval, Long jitter, Class<? extends org.apache.hadoop.fs.GetSpaceUsed> klass)
-
Field Details
-
DU_CACHE_FILE
- See Also:
-
-
Method Details
-
updateDfsUsageConfig
public void updateDfsUsageConfig(Long interval, Long jitter, Class<? extends org.apache.hadoop.fs.GetSpaceUsed> klass) throws IOException - Throws:
IOException
-
getDfsUsage
@VisibleForTesting public org.apache.hadoop.fs.GetSpaceUsed getDfsUsage() -
toString
-
getNumOfBlocks
public long getNumOfBlocks() -
getAddReplicaForkPoolSize
@VisibleForTesting public static int getAddReplicaForkPoolSize()Return the size of fork pool used for adding replica in map. -
getAddReplicaThreadPool
-
reInitializeAddReplicaThreadPool
@VisibleForTesting public static void reInitializeAddReplicaThreadPool()
-