org.apache.hadoop.dfs.namenode.metrics
Class NameNodeStatistics

java.lang.Object
  extended by org.apache.hadoop.dfs.namenode.metrics.NameNodeStatistics
All Implemented Interfaces:
NameNodeStatisticsMBean

public class NameNodeStatistics
extends Object
implements NameNodeStatisticsMBean

This is the implementation of the Name Node JMX MBean


Constructor Summary
NameNodeStatistics(NameNodeMetrics nameNodeMetrics)
          This constructs and registers the NameNodeStatisticsMBean
 
Method Summary
 long getBlockReportAverageTime()
          Average time for Block Report Processing in last interval
 long getBlockReportMaxTime()
          The Maximum Block Report Processing Time since reset was called
 long getBlockReportMinTime()
          The Minimum Block Report Processing Time since reset was called
 int getBlockReportNum()
          Number of block Reports processed in the last interval
 int getFSImageLoadTime()
          Time spent loading the FS Image at startup
 long getJournalSyncAverageTime()
          Average time for Journal Sync in last interval
 long getJournalSyncMaxTime()
          The Maximum Journal Sync Time since reset was called
 long getJournalSyncMinTime()
          The Minimum Journal Sync Time since reset was called
 int getJournalSyncNum()
          Number of Journal Syncs in the last interval
 long getJournalTransactionAverageTime()
          Average time for Journal transactions in last interval
 long getJournalTransactionMaxTime()
          The Maximum Journal Transaction Time since reset was called
 long getJournalTransactionMinTime()
          The Minimum Journal Transaction Time since reset was called
 int getJournalTransactionNum()
          Number of Journal Transactions in the last interval
 int getNumAddBlockOps()
          Number of add block operations in the last interval
 int getNumCreateFileOps()
          Number of file creation operations in the last interval
 int getNumDeleteFileOps()
          Number of file deletion operations in the last interval
 int getNumFilesCreated()
          Number of files created in the last interval
 int getNumFilesListed()
          Deprecated. call getNumGetListingOps() instead
 int getNumFilesRenamed()
          Number of files renamed in the last interval
 int getNumGetBlockLocations()
          Number of NameNode.getBlockLocations(String,long,long)
 int getNumGetListingOps()
          Number of files listed in the last interval
 int getSafemodeTime()
          The time spent in the Safemode at startup
 void resetAllMinMax()
          Reset all min max times
 void shutdown()
          Shuts down the statistics - unregisters the mbean
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NameNodeStatistics

public NameNodeStatistics(NameNodeMetrics nameNodeMetrics)
This constructs and registers the NameNodeStatisticsMBean

Parameters:
nameNodeMetrics - - the metrics from which the mbean gets its info
Method Detail

shutdown

public void shutdown()
Shuts down the statistics - unregisters the mbean


getBlockReportAverageTime

public long getBlockReportAverageTime()
Description copied from interface: NameNodeStatisticsMBean
Average time for Block Report Processing in last interval

Specified by:
getBlockReportAverageTime in interface NameNodeStatisticsMBean
Returns:
time in msec

getBlockReportMaxTime

public long getBlockReportMaxTime()
Description copied from interface: NameNodeStatisticsMBean
The Maximum Block Report Processing Time since reset was called

Specified by:
getBlockReportMaxTime in interface NameNodeStatisticsMBean
Returns:
time in msec

getBlockReportMinTime

public long getBlockReportMinTime()
Description copied from interface: NameNodeStatisticsMBean
The Minimum Block Report Processing Time since reset was called

Specified by:
getBlockReportMinTime in interface NameNodeStatisticsMBean
Returns:
time in msec

getBlockReportNum

public int getBlockReportNum()
Description copied from interface: NameNodeStatisticsMBean
Number of block Reports processed in the last interval

Specified by:
getBlockReportNum in interface NameNodeStatisticsMBean
Returns:
number of operations

getJournalTransactionAverageTime

public long getJournalTransactionAverageTime()
Description copied from interface: NameNodeStatisticsMBean
Average time for Journal transactions in last interval

Specified by:
getJournalTransactionAverageTime in interface NameNodeStatisticsMBean
Returns:
time in msec

getJournalTransactionNum

public int getJournalTransactionNum()
Description copied from interface: NameNodeStatisticsMBean
Number of Journal Transactions in the last interval

Specified by:
getJournalTransactionNum in interface NameNodeStatisticsMBean
Returns:
number of operations

getJournalTransactionMaxTime

public long getJournalTransactionMaxTime()
Description copied from interface: NameNodeStatisticsMBean
The Maximum Journal Transaction Time since reset was called

Specified by:
getJournalTransactionMaxTime in interface NameNodeStatisticsMBean
Returns:
time in msec

getJournalTransactionMinTime

public long getJournalTransactionMinTime()
Description copied from interface: NameNodeStatisticsMBean
The Minimum Journal Transaction Time since reset was called

Specified by:
getJournalTransactionMinTime in interface NameNodeStatisticsMBean
Returns:
time in msec

getJournalSyncAverageTime

public long getJournalSyncAverageTime()
Description copied from interface: NameNodeStatisticsMBean
Average time for Journal Sync in last interval

Specified by:
getJournalSyncAverageTime in interface NameNodeStatisticsMBean
Returns:
time in msec

getJournalSyncMaxTime

public long getJournalSyncMaxTime()
Description copied from interface: NameNodeStatisticsMBean
The Maximum Journal Sync Time since reset was called

Specified by:
getJournalSyncMaxTime in interface NameNodeStatisticsMBean
Returns:
time in msec

getJournalSyncMinTime

public long getJournalSyncMinTime()
Description copied from interface: NameNodeStatisticsMBean
The Minimum Journal Sync Time since reset was called

Specified by:
getJournalSyncMinTime in interface NameNodeStatisticsMBean
Returns:
time in msec

getJournalSyncNum

public int getJournalSyncNum()
Description copied from interface: NameNodeStatisticsMBean
Number of Journal Syncs in the last interval

Specified by:
getJournalSyncNum in interface NameNodeStatisticsMBean
Returns:
number of operations

getSafemodeTime

public int getSafemodeTime()
Description copied from interface: NameNodeStatisticsMBean
The time spent in the Safemode at startup

Specified by:
getSafemodeTime in interface NameNodeStatisticsMBean
Returns:
time in msec

getFSImageLoadTime

public int getFSImageLoadTime()
Description copied from interface: NameNodeStatisticsMBean
Time spent loading the FS Image at startup

Specified by:
getFSImageLoadTime in interface NameNodeStatisticsMBean
Returns:
time in msec

resetAllMinMax

public void resetAllMinMax()
Description copied from interface: NameNodeStatisticsMBean
Reset all min max times

Specified by:
resetAllMinMax in interface NameNodeStatisticsMBean

getNumFilesCreated

public int getNumFilesCreated()
Description copied from interface: NameNodeStatisticsMBean
Number of files created in the last interval

Specified by:
getNumFilesCreated in interface NameNodeStatisticsMBean
Returns:
number of operations

getNumFilesListed

@Deprecated
public int getNumFilesListed()
Deprecated. call getNumGetListingOps() instead

Description copied from interface: NameNodeStatisticsMBean
Number of files listed in the last interval

Specified by:
getNumFilesListed in interface NameNodeStatisticsMBean
Returns:
number of operations

getNumGetListingOps

public int getNumGetListingOps()
Description copied from interface: NameNodeStatisticsMBean
Number of files listed in the last interval

Specified by:
getNumGetListingOps in interface NameNodeStatisticsMBean
Returns:
number of operations

getNumCreateFileOps

public int getNumCreateFileOps()
Description copied from interface: NameNodeStatisticsMBean
Number of file creation operations in the last interval

Specified by:
getNumCreateFileOps in interface NameNodeStatisticsMBean
Returns:
number of file creation operations

getNumDeleteFileOps

public int getNumDeleteFileOps()
Description copied from interface: NameNodeStatisticsMBean
Number of file deletion operations in the last interval

Specified by:
getNumDeleteFileOps in interface NameNodeStatisticsMBean
Returns:
number of file deletion operations

getNumAddBlockOps

public int getNumAddBlockOps()
Description copied from interface: NameNodeStatisticsMBean
Number of add block operations in the last interval

Specified by:
getNumAddBlockOps in interface NameNodeStatisticsMBean
Returns:
number of add block operations

getNumGetBlockLocations

public int getNumGetBlockLocations()
Description copied from interface: NameNodeStatisticsMBean
Number of NameNode.getBlockLocations(String,long,long)

Specified by:
getNumGetBlockLocations in interface NameNodeStatisticsMBean
Returns:
number of operations

getNumFilesRenamed

public int getNumFilesRenamed()
Description copied from interface: NameNodeStatisticsMBean
Number of files renamed in the last interval

Specified by:
getNumFilesRenamed in interface NameNodeStatisticsMBean
Returns:
number of operations


Copyright © 2008 The Apache Software Foundation