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


@InterfaceAudience.Public
@InterfaceStability.Stable
public interface NameNodeMXBean

This is the JMX management interface for namenode information


Method Summary
 String getBlockPoolId()
          Gets the block pool id.
 long getBlockPoolUsedSpace()
          Get the total space used by the block pools of this namenode
 String getClusterId()
          Gets the cluster id.
 String getDeadNodes()
          Gets the dead node information of the cluster.
 String getDecomNodes()
          Gets the decommissioning node information of the cluster.
 int getDistinctVersionCount()
          Get the number of distinct versions of live datanodes
 Map<String,Integer> getDistinctVersions()
          Get the number of live datanodes for each distinct versions
 long getFree()
          Gets total non-used raw bytes.
 String getJournalTransactionInfo()
          Get information about the transaction ID, including the last applied transaction ID and the most recent checkpoint's transaction ID
 String getLiveNodes()
          Gets the live node information of the cluster.
 String getNameDirStatuses()
          Get status information about the directories storing image and edits logs of the NN.
 long getNonDfsUsedSpace()
          Gets total used space by data nodes for non DFS purposes such as storing temporary files on the local file system
 long getNumberOfMissingBlocks()
          Gets the total number of missing blocks on the cluster
 float getPercentBlockPoolUsed()
          Get the total space used by the block pool as percentage of total capacity
 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
 String getSoftwareVersion()
          Get the version of software running on the Namenode
 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

getSoftwareVersion

String getSoftwareVersion()
Get the version of software running on the Namenode

Returns:
a string representing 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

getBlockPoolUsedSpace

long getBlockPoolUsedSpace()
Get the total space used by the block pools of this namenode


getPercentBlockPoolUsed

float getPercentBlockPoolUsed()
Get the total space used by the block pool as percentage of total capacity


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

getNumberOfMissingBlocks

long getNumberOfMissingBlocks()
Gets the total number of missing blocks on the cluster

Returns:
the total number of files and blocks 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

getClusterId

String getClusterId()
Gets the cluster id.

Returns:
the cluster id

getBlockPoolId

String getBlockPoolId()
Gets the block pool id.

Returns:
the block pool id

getNameDirStatuses

String getNameDirStatuses()
Get status information about the directories storing image and edits logs of the NN.

Returns:
the name dir status information, as a JSON string.

getJournalTransactionInfo

String getJournalTransactionInfo()
Get information about the transaction ID, including the last applied transaction ID and the most recent checkpoint's transaction ID


getDistinctVersionCount

int getDistinctVersionCount()
Get the number of distinct versions of live datanodes

Returns:
the number of distinct versions of live datanodes

getDistinctVersions

Map<String,Integer> getDistinctVersions()
Get the number of live datanodes for each distinct versions

Returns:
the number of live datanodes for each distinct versions


Copyright © 2013 Apache Software Foundation. All Rights Reserved.