org.apache.hadoop.hbase.master
Class MXBeanImpl

java.lang.Object
  extended by org.apache.hadoop.hbase.master.MXBeanImpl
All Implemented Interfaces:
MXBean

public class MXBeanImpl
extends Object
implements MXBean

Impl for exposing HMaster Information through JMX


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.hadoop.hbase.master.MXBean
MXBean.RegionsInTransitionInfo
 
Constructor Summary
protected MXBeanImpl(HMaster master)
           
 
Method Summary
 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
 long getMasterActiveTime()
          Get the hbase master active time
 long getMasterStartTime()
          Get hbase master start time
 Map<String,HServerLoad> getRegionServers()
          Get the live region servers
 MXBean.RegionsInTransitionInfo[] getRegionsInTransition()
          Get information on regions in transition
 String getServerName()
          Get ServerName
 String getZookeeperQuorum()
          Get the Zookeeper Quorum Info
static MXBeanImpl init(HMaster master)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MXBeanImpl

protected MXBeanImpl(HMaster master)
Method Detail

init

public static MXBeanImpl init(HMaster master)

getAverageLoad

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

Specified by:
getAverageLoad in interface MXBean
Returns:
Average Load

getClusterId

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

Specified by:
getClusterId in interface MXBean
Returns:
Cluster ID

getZookeeperQuorum

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

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

getCoprocessors

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

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

getMasterStartTime

public long getMasterStartTime()
Description copied from interface: MXBean
Get hbase master start time

Specified by:
getMasterStartTime in interface MXBean
Returns:
Start time of master in milliseconds

getMasterActiveTime

public long getMasterActiveTime()
Description copied from interface: MXBean
Get the hbase master active time

Specified by:
getMasterActiveTime in interface MXBean
Returns:
Time in milliseconds when master became active

getRegionServers

public Map<String,HServerLoad> getRegionServers()
Description copied from interface: MXBean
Get the live region servers

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

getDeadRegionServers

public String[] getDeadRegionServers()
Description copied from interface: MXBean
Get the dead region servers

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

getRegionsInTransition

public MXBean.RegionsInTransitionInfo[] getRegionsInTransition()
Description copied from interface: MXBean
Get information on regions in transition

Specified by:
getRegionsInTransition in interface MXBean
Returns:
Regions in transition

getServerName

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

Specified by:
getServerName in interface MXBean

getIsActiveMaster

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

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


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.