org.apache.hadoop.hbase.master
Interface MetricsMasterWrapper

All Known Implementing Classes:
MetricsMasterWrapperImpl

public interface MetricsMasterWrapper

This is the interface that will expose information to hadoop1/hadoop2 implementations of the MetricsMasterSource.


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
 

Method Detail

getServerName

String getServerName()
Get ServerName


getAverageLoad

double getAverageLoad()
Get Average Load

Returns:
Average Load

getClusterId

String getClusterId()
Get the Cluster ID

Returns:
Cluster ID

getZookeeperQuorum

String getZookeeperQuorum()
Get the Zookeeper Quorum Info

Returns:
Zookeeper Quorum Info

getCoprocessors

String[] getCoprocessors()
Get the co-processors

Returns:
Co-processors

getStartTime

long getStartTime()
Get hbase master start time

Returns:
Start time of master in milliseconds

getActiveTime

long getActiveTime()
Get the hbase master active time

Returns:
Time in milliseconds when master became active

getIsActiveMaster

boolean getIsActiveMaster()
Whether this master is the active master

Returns:
True if this is the active master

getRegionServers

String getRegionServers()
Get the live region servers

Returns:
Live region servers

getNumRegionServers

int getNumRegionServers()
Get the number of live region servers

Returns:
number of Live region servers

getDeadRegionServers

String getDeadRegionServers()
Get the dead region servers

Returns:
Dead region Servers

getNumDeadRegionServers

int getNumDeadRegionServers()
Get the number of dead region servers

Returns:
number of Dead region Servers


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