Interface FSDatasetMBean
- All Superinterfaces:
org.apache.hadoop.metrics2.MetricsSource
- All Known Subinterfaces:
FsDatasetSpi<V>
@Private
public interface FSDatasetMBean
extends org.apache.hadoop.metrics2.MetricsSource
This Interface defines the methods to get the status of a the FSDataset of
a data node.
It is also used for publishing via JMX (hence we follow the JMX naming
convention.)
* Note we have not used the MetricsDynamicMBeanBase to implement this
because the interface for the FSDatasetMBean is stable and should
be published as an interface.
Data Node runtime statistic info is report in another MBean
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionlonggetBlockPoolUsed(String bpid) Returns the total space (in bytes) used by a block poollongReturns the total cache capacity of the datanode (in bytes).longReturns the amount of cache used by the datanode (in bytes).longReturns total capacity (in bytes) of storage (used and unused)longReturns the total space (in bytes) used by dfs datanodelongReturns an estimate of total capacity lost due to volume failures in bytes.String[]Returns each storage location that has failed, sorted.longReturns the last time in milliseconds when the directory scanner successfully ran.longReturns the date/time of the last volume failure in milliseconds since epoch.longReturns the number of blocks cached.longReturns the number of blocks that the datanode was unable to cachelongReturns the number of blocks that the datanode was unable to uncacheintReturns the number of failed volumes in the datanode.longReturns the count of pending and running asynchronous disk operations.longReturns the amount of free storage space (in bytes)Returns the storage id of the underlying storageMethods inherited from interface org.apache.hadoop.metrics2.MetricsSource
getMetrics
-
Method Details
-
getBlockPoolUsed
Returns the total space (in bytes) used by a block pool- Returns:
- the total space used by a block pool
- Throws:
IOException
-
getDfsUsed
Returns the total space (in bytes) used by dfs datanode- Returns:
- the total space used by dfs datanode
- Throws:
IOException
-
getCapacity
Returns total capacity (in bytes) of storage (used and unused)- Returns:
- total capacity of storage (used and unused)
- Throws:
IOException
-
getRemaining
Returns the amount of free storage space (in bytes)- Returns:
- The amount of free storage space
- Throws:
IOException
-
getStorageInfo
String getStorageInfo()Returns the storage id of the underlying storage -
getNumFailedVolumes
int getNumFailedVolumes()Returns the number of failed volumes in the datanode.- Returns:
- The number of failed volumes in the datanode.
-
getFailedStorageLocations
String[] getFailedStorageLocations()Returns each storage location that has failed, sorted.- Returns:
- each storage location that has failed, sorted
-
getLastVolumeFailureDate
long getLastVolumeFailureDate()Returns the date/time of the last volume failure in milliseconds since epoch.- Returns:
- date/time of last volume failure in milliseconds since epoch
-
getEstimatedCapacityLostTotal
long getEstimatedCapacityLostTotal()Returns an estimate of total capacity lost due to volume failures in bytes.- Returns:
- estimate of total capacity lost in bytes
-
getCacheUsed
long getCacheUsed()Returns the amount of cache used by the datanode (in bytes). -
getCacheCapacity
long getCacheCapacity()Returns the total cache capacity of the datanode (in bytes). -
getNumBlocksCached
long getNumBlocksCached()Returns the number of blocks cached. -
getNumBlocksFailedToCache
long getNumBlocksFailedToCache()Returns the number of blocks that the datanode was unable to cache -
getNumBlocksFailedToUncache
long getNumBlocksFailedToUncache()Returns the number of blocks that the datanode was unable to uncache -
getLastDirScannerFinishTime
long getLastDirScannerFinishTime()Returns the last time in milliseconds when the directory scanner successfully ran. -
getPendingAsyncDeletions
long getPendingAsyncDeletions()Returns the count of pending and running asynchronous disk operations.
-