public class DatanodeStorageInfo extends Object
| Modifier and Type | Field and Description |
|---|---|
static DatanodeStorageInfo[] |
EMPTY_ARRAY |
public static final DatanodeStorageInfo[] EMPTY_ARRAY
public static org.apache.hadoop.hdfs.protocol.DatanodeInfo[] toDatanodeInfos(DatanodeStorageInfo[] storages)
public static String[] toStorageIDs(DatanodeStorageInfo[] storages)
public static StorageType[] toStorageTypes(DatanodeStorageInfo[] storages)
public void updateFromStorage(DatanodeStorage storage)
public int getBlockReportCount()
public void setUtilizationForTesting(long capacity, long dfsUsed, long remaining, long blockPoolUsed)
public String getStorageID()
public StorageType getStorageType()
public org.apache.hadoop.hdfs.server.blockmanagement.DatanodeStorageInfo.AddBlockResult addBlock(org.apache.hadoop.hdfs.server.blockmanagement.BlockInfoContiguous b)
public boolean removeBlock(org.apache.hadoop.hdfs.server.blockmanagement.BlockInfoContiguous b)
public org.apache.hadoop.hdfs.server.blockmanagement.DatanodeDescriptor getDatanodeDescriptor()
public static void incrementBlocksScheduled(DatanodeStorageInfo... storages)
Copyright © 2018 CERN. All Rights Reserved.