org.apache.hadoop.hdfs.server.namenode
Interface NameNodeMXBean

All Known Implementing Classes:
FSNamesystem

@InterfaceAudience.Public
@InterfaceStability.Stable
public interface NameNodeMXBean

This is the JMX management interface for namenode information


Method Summary
 String getDeadNodes()
          Gets the dead node information of the cluster.
 String getDecomNodes()
          Gets the decommissioning node information of the cluster.
 long getFree()
          Gets total non-used raw bytes.
 String getLiveNodes()
          Gets the live node information of the cluster.
 long getNonDfsUsedSpace()
          Gets total used space by data nodes for non DFS purposes such as storing temporary files on the local file system
 float getPercentRemaining()
          Gets the total remaining space by data nodes as percentage of total capacity
 float getPercentUsed()
          Gets the total used space by data nodes as percentage of total capacity
 String getSafemode()
          Gets the safemode status
 int getThreads()
          Gets the number of threads.
 long getTotal()
          Gets total raw bytes including non-dfs used space.
 long getTotalBlocks()
          Gets the total numbers of blocks on the cluster.
 long getTotalFiles()
          Gets the total number of files on the cluster
 long getUsed()
          Gets the used space by data nodes.
 String getVersion()
          Gets the version of Hadoop.
 boolean isUpgradeFinalized()
          Checks if upgrade is finalized.
 

Method Detail

getVersion

String getVersion()
Gets the version of Hadoop.

Returns:
the version

getUsed

long getUsed()
Gets the used space by data nodes.

Returns:
the used space by data nodes

getFree

long getFree()
Gets total non-used raw bytes.

Returns:
total non-used raw bytes

getTotal

long getTotal()
Gets total raw bytes including non-dfs used space.

Returns:
the total raw bytes including non-dfs used space

getSafemode

String getSafemode()
Gets the safemode status

Returns:
the safemode status

isUpgradeFinalized

boolean isUpgradeFinalized()
Checks if upgrade is finalized.

Returns:
true, if upgrade is finalized

getNonDfsUsedSpace

long getNonDfsUsedSpace()
Gets total used space by data nodes for non DFS purposes such as storing temporary files on the local file system

Returns:
the non dfs space of the cluster

getPercentUsed

float getPercentUsed()
Gets the total used space by data nodes as percentage of total capacity

Returns:
the percentage of used space on the cluster.

getPercentRemaining

float getPercentRemaining()
Gets the total remaining space by data nodes as percentage of total capacity

Returns:
the percentage of the remaining space on the cluster

getTotalBlocks

long getTotalBlocks()
Gets the total numbers of blocks on the cluster.

Returns:
the total number of blocks of the cluster

getTotalFiles

long getTotalFiles()
Gets the total number of files on the cluster

Returns:
the total number of files on the cluster

getThreads

int getThreads()
Gets the number of threads.

Returns:
the number of threads

getLiveNodes

String getLiveNodes()
Gets the live node information of the cluster.

Returns:
the live node information

getDeadNodes

String getDeadNodes()
Gets the dead node information of the cluster.

Returns:
the dead node information

getDecomNodes

String getDecomNodes()
Gets the decommissioning node information of the cluster.

Returns:
the decommissioning node information


Copyright © 2009 The Apache Software Foundation