public class DatanodeStorageInfo extends Object
Modifier and Type | Field and Description |
---|---|
static DatanodeStorageInfo[] |
EMPTY_ARRAY |
Modifier and Type | Method and Description |
---|---|
boolean |
addBlock(org.apache.hadoop.hdfs.server.blockmanagement.BlockInfo b) |
boolean |
equals(Object obj) |
org.apache.hadoop.hdfs.server.blockmanagement.DatanodeDescriptor |
getDatanodeDescriptor() |
int |
hashCode() |
static void |
incrementBlocksScheduled(DatanodeStorageInfo... storages)
Increment the number of blocks scheduled for each given storage
|
void |
setUtilizationForTesting(long capacity,
long dfsUsed,
long remaining,
long blockPoolUsed) |
static org.apache.hadoop.hdfs.protocol.DatanodeInfo[] |
toDatanodeInfos(DatanodeStorageInfo[] storages) |
static String[] |
toStorageIDs(DatanodeStorageInfo[] storages) |
static StorageType[] |
toStorageTypes(DatanodeStorageInfo[] storages) |
String |
toString() |
void |
updateFromStorage(DatanodeStorage storage) |
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 void setUtilizationForTesting(long capacity, long dfsUsed, long remaining, long blockPoolUsed)
public boolean addBlock(org.apache.hadoop.hdfs.server.blockmanagement.BlockInfo b)
public org.apache.hadoop.hdfs.server.blockmanagement.DatanodeDescriptor getDatanodeDescriptor()
public static void incrementBlocksScheduled(DatanodeStorageInfo... storages)
Copyright © 2015 Apache Software Foundation. All Rights Reserved.