org.apache.hadoop.dfs.datanode.metrics
Interface FSDatasetMBean

All Known Subinterfaces:
FSDatasetInterface

public interface FSDatasetMBean

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.)

Data Node runtime statistic info is report in another MBean

See Also:
DataNodeStatisticsMBean

Method Summary
 long getCapacity()
          Returns total capacity (in bytes) of storage (used and unused)
 long getDfsUsed()
          Returns the total space (in bytes) used by dfs datanode
 long getRemaining()
          Returns the amount of free storage space (in bytes)
 String getStorageInfo()
          Returns the storage id of the underlying storage
 

Method Detail

getDfsUsed

long getDfsUsed()
                throws IOException
Returns the total space (in bytes) used by dfs datanode

Returns:
the total space used by dfs datanode
Throws:
IOException

getCapacity

long getCapacity()
                 throws IOException
Returns total capacity (in bytes) of storage (used and unused)

Returns:
total capacity of storage (used and unused)
Throws:
IOException

getRemaining

long getRemaining()
                  throws IOException
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



Copyright © 2008 The Apache Software Foundation