org.apache.hadoop.dfs.namenode.metrics
Interface FSNamesystemMBean


public interface FSNamesystemMBean

This Interface defines the methods to get the status of a the FSNamesystem of a name node. It is also used for publishing via JMX (hence we follow the JMX naming convention.)

Name Node runtime statistic info is report in another MBean

See Also:
NameNodeStatisticsMBean

Method Summary
 long getBlocksTotal()
          Number of allocated blocks in the system
 long getCapacityRemaining()
          Free (unused) storage capacity
 long getCapacityTotal()
          Total storage capacity
 long getCapacityUsed()
          Used storage capacity
 long getFilesTotal()
          Total number of files and directories
 String getFSState()
          The state of the file system: Safemode or Operational
 int numDeadDataNodes()
          Number of dead data nodes
 int numLiveDataNodes()
          Number of Live data nodes
 

Method Detail

getFSState

String getFSState()
The state of the file system: Safemode or Operational

Returns:
the state

getBlocksTotal

long getBlocksTotal()
Number of allocated blocks in the system

Returns:
- number of allocated blocks

getCapacityTotal

long getCapacityTotal()
Total storage capacity

Returns:
- total capacity in bytes

getCapacityRemaining

long getCapacityRemaining()
Free (unused) storage capacity

Returns:
- free capacity in bytes

getCapacityUsed

long getCapacityUsed()
Used storage capacity

Returns:
- used capacity in bytes

getFilesTotal

long getFilesTotal()
Total number of files and directories

Returns:
- num of files and directories

numLiveDataNodes

int numLiveDataNodes()
Number of Live data nodes

Returns:
number of live data nodes

numDeadDataNodes

int numDeadDataNodes()
Number of dead data nodes

Returns:
number of dead data nodes


Copyright © 2006 The Apache Software Foundation