org.apache.hadoop.hbase.master
Class MetricsMasterWrapperImpl

java.lang.Object
  extended by org.apache.hadoop.hbase.master.MetricsMasterWrapperImpl
All Implemented Interfaces:
MetricsMasterWrapper

@InterfaceAudience.Private
public class MetricsMasterWrapperImpl
extends Object
implements MetricsMasterWrapper

Impl for exposing HMaster Information through JMX


Constructor Summary
MetricsMasterWrapperImpl(HMaster master)
           
 
Method Summary
 long getActiveTime()
          Get the hbase master active time
 double getAverageLoad()
          Get Average Load
 String getClusterId()
          Get the Cluster ID
 String[] getCoprocessors()
          Get the co-processors
 String getDeadRegionServers()
          Get the dead region servers
 boolean getIsActiveMaster()
          Whether this master is the active master
 int getNumDeadRegionServers()
          Get the number of dead region servers
 int getNumRegionServers()
          Get the number of live region servers
 String getRegionServers()
          Get the live region servers
 String getServerName()
          Get ServerName
 long getStartTime()
          Get hbase master start time
 String getZookeeperQuorum()
          Get the Zookeeper Quorum Info
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetricsMasterWrapperImpl

public MetricsMasterWrapperImpl(HMaster master)
Method Detail

getAverageLoad

public double getAverageLoad()
Description copied from interface: MetricsMasterWrapper
Get Average Load

Specified by:
getAverageLoad in interface MetricsMasterWrapper
Returns:
Average Load

getClusterId

public String getClusterId()
Description copied from interface: MetricsMasterWrapper
Get the Cluster ID

Specified by:
getClusterId in interface MetricsMasterWrapper
Returns:
Cluster ID

getZookeeperQuorum

public String getZookeeperQuorum()
Description copied from interface: MetricsMasterWrapper
Get the Zookeeper Quorum Info

Specified by:
getZookeeperQuorum in interface MetricsMasterWrapper
Returns:
Zookeeper Quorum Info

getCoprocessors

public String[] getCoprocessors()
Description copied from interface: MetricsMasterWrapper
Get the co-processors

Specified by:
getCoprocessors in interface MetricsMasterWrapper
Returns:
Co-processors

getStartTime

public long getStartTime()
Description copied from interface: MetricsMasterWrapper
Get hbase master start time

Specified by:
getStartTime in interface MetricsMasterWrapper
Returns:
Start time of master in milliseconds

getActiveTime

public long getActiveTime()
Description copied from interface: MetricsMasterWrapper
Get the hbase master active time

Specified by:
getActiveTime in interface MetricsMasterWrapper
Returns:
Time in milliseconds when master became active

getRegionServers

public String getRegionServers()
Description copied from interface: MetricsMasterWrapper
Get the live region servers

Specified by:
getRegionServers in interface MetricsMasterWrapper
Returns:
Live region servers

getNumRegionServers

public int getNumRegionServers()
Description copied from interface: MetricsMasterWrapper
Get the number of live region servers

Specified by:
getNumRegionServers in interface MetricsMasterWrapper
Returns:
number of Live region servers

getDeadRegionServers

public String getDeadRegionServers()
Description copied from interface: MetricsMasterWrapper
Get the dead region servers

Specified by:
getDeadRegionServers in interface MetricsMasterWrapper
Returns:
Dead region Servers

getNumDeadRegionServers

public int getNumDeadRegionServers()
Description copied from interface: MetricsMasterWrapper
Get the number of dead region servers

Specified by:
getNumDeadRegionServers in interface MetricsMasterWrapper
Returns:
number of Dead region Servers

getServerName

public String getServerName()
Description copied from interface: MetricsMasterWrapper
Get ServerName

Specified by:
getServerName in interface MetricsMasterWrapper

getIsActiveMaster

public boolean getIsActiveMaster()
Description copied from interface: MetricsMasterWrapper
Whether this master is the active master

Specified by:
getIsActiveMaster in interface MetricsMasterWrapper
Returns:
True if this is the active master


Copyright © 2015 The Apache Software Foundation. All rights reserved.