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

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

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 © 2008 The Apache Software Foundation