public class DatanodeStorageInfo
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
static DatanodeStorageInfo[] |
EMPTY_ARRAY |
| Modifier and Type | Method | Description |
|---|---|---|
org.apache.hadoop.hdfs.server.blockmanagement.DatanodeStorageInfo.AddBlockResult |
addBlock(BlockInfo b,
org.apache.hadoop.hdfs.protocol.Block reportedBlock) |
|
boolean |
areBlockContentsStale() |
|
static void |
decrementBlocksScheduled(DatanodeStorageInfo... storages) |
Decrement the number of blocks scheduled for each given storage.
|
boolean |
equals(java.lang.Object obj) |
|
int |
getBlockReportCount() |
|
DatanodeDescriptor |
getDatanodeDescriptor() |
|
java.lang.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
|
void |
insertToList(BlockInfo b) |
|
void |
setBlockContentsStale(boolean value) |
|
void |
setUtilizationForTesting(long capacity,
long dfsUsed,
long remaining,
long blockPoolUsed) |
|
static org.apache.hadoop.hdfs.protocol.DatanodeInfo[] |
toDatanodeInfos(DatanodeStorageInfo[] storages) |
|
static java.lang.String[] |
toStorageIDs(DatanodeStorageInfo[] storages) |
|
static org.apache.hadoop.fs.StorageType[] |
toStorageTypes(DatanodeStorageInfo[] storages) |
|
java.lang.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 java.lang.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()
@VisibleForTesting public void setBlockContentsStale(boolean value)
@VisibleForTesting
public void setUtilizationForTesting(long capacity,
long dfsUsed,
long remaining,
long blockPoolUsed)
@VisibleForTesting public java.lang.String getStorageID()
public org.apache.hadoop.fs.StorageType getStorageType()
public org.apache.hadoop.hdfs.server.blockmanagement.DatanodeStorageInfo.AddBlockResult addBlock(BlockInfo b, org.apache.hadoop.hdfs.protocol.Block reportedBlock)
public void insertToList(BlockInfo b)
public DatanodeDescriptor getDatanodeDescriptor()
public static void incrementBlocksScheduled(DatanodeStorageInfo... storages)
public static void decrementBlocksScheduled(DatanodeStorageInfo... storages)
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2008–2025 Apache Software Foundation. All rights reserved.