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