org.apache.hadoop.hdfs.server.namenode.metrics
Interface FSNamesystemMBean

All Known Implementing Classes:
FSNamesystem

@InterfaceAudience.Private
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.) Note we have not used the MetricsDynamicMBeanBase to implement this because the interface for the NameNodeStateMBean is stable and should be published as an interface.

Name Node runtime activity statistic info is report in another MBean

See Also:
NameNodeActivityMBean

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 getNumDeadDataNodes()
          Number of dead data nodes
 int getNumLiveDataNodes()
          Number of Live data nodes
 long getPendingReplicationBlocks()
          Blocks pending to be replicated
 long getScheduledReplicationBlocks()
          Blocks scheduled for replication
 int getTotalLoad()
          Total Load on the FSNamesystem
 long getUnderReplicatedBlocks()
          Blocks under replicated
 

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

getPendingReplicationBlocks

long getPendingReplicationBlocks()
Blocks pending to be replicated

Returns:
- num of blocks to be replicated

getUnderReplicatedBlocks

long getUnderReplicatedBlocks()
Blocks under replicated

Returns:
- num of blocks under replicated

getScheduledReplicationBlocks

long getScheduledReplicationBlocks()
Blocks scheduled for replication

Returns:
- num of blocks scheduled for replication

getTotalLoad

int getTotalLoad()
Total Load on the FSNamesystem

Returns:
- total load of FSNamesystem

getNumLiveDataNodes

int getNumLiveDataNodes()
Number of Live data nodes

Returns:
number of live data nodes

getNumDeadDataNodes

int getNumDeadDataNodes()
Number of dead data nodes

Returns:
number of dead data nodes


Copyright © 2009 The Apache Software Foundation