org.apache.hadoop.hbase.master
Interface MetricsMasterSource

All Superinterfaces:
BaseSource
All Known Implementing Classes:
MetricsMasterSourceImpl

public interface MetricsMasterSource
extends BaseSource

Interface that classes that expose metrics about the master will implement.


Field Summary
static String AVERAGE_LOAD_DESC
           
static String AVERAGE_LOAD_NAME
           
static String CLUSTER_ID_DESC
           
static String CLUSTER_ID_NAME
           
static String CLUSTER_REQUESTS_NAME
           
static String IS_ACTIVE_MASTER_DESC
           
static String IS_ACTIVE_MASTER_NAME
           
static String MASTER_ACTIVE_TIME_DESC
           
static String MASTER_ACTIVE_TIME_NAME
           
static String MASTER_START_TIME_DESC
           
static String MASTER_START_TIME_NAME
           
static String METRICS_CONTEXT
          The context metrics will be under.
static String METRICS_DESCRIPTION
          Description
static String METRICS_JMX_CONTEXT
          The name of the metrics context that metrics will be under in jmx
static String METRICS_NAME
          The name of the metrics
static String NUM_DEAD_REGION_SERVERS_NAME
           
static String NUM_REGION_SERVERS_NAME
           
static String NUMBER_OF_DEAD_REGION_SERVERS_DESC
           
static String NUMBER_OF_REGION_SERVERS_DESC
           
static String RIT_COUNT_NAME
           
static String RIT_COUNT_OVER_THRESHOLD_NAME
           
static String RIT_OLDEST_AGE_NAME
           
static String SERVER_NAME_DESC
           
static String SERVER_NAME_NAME
           
static String SPLIT_SIZE_DESC
           
static String SPLIT_SIZE_NAME
           
static String SPLIT_TIME_DESC
           
static String SPLIT_TIME_NAME
           
static String ZOOKEEPER_QUORUM_DESC
           
static String ZOOKEEPER_QUORUM_NAME
           
 
Fields inherited from interface org.apache.hadoop.hbase.metrics.BaseSource
HBASE_METRICS_SYSTEM_NAME
 
Method Summary
 void incRequests(int inc)
          Increment the number of requests the cluster has seen.
 void setRIT(int ritCount)
          Set the number of regions in transition.
 void setRITCountOverThreshold(int ritCountOverThreshold)
          Set the count of the number of regions that have been in transition over the threshold time.
 void setRITOldestAge(long age)
          Set the oldest region in transition.
 void updateSplitSize(long size)
           
 void updateSplitTime(long time)
           
 
Methods inherited from interface org.apache.hadoop.hbase.metrics.BaseSource
decGauge, getMetricsContext, getMetricsDescription, getMetricsJmxContext, getMetricsName, incCounters, incGauge, init, removeMetric, setGauge, updateHistogram, updateQuantile
 

Field Detail

METRICS_NAME

static final String METRICS_NAME
The name of the metrics

See Also:
Constant Field Values

METRICS_CONTEXT

static final String METRICS_CONTEXT
The context metrics will be under.

See Also:
Constant Field Values

METRICS_JMX_CONTEXT

static final String METRICS_JMX_CONTEXT
The name of the metrics context that metrics will be under in jmx

See Also:
Constant Field Values

METRICS_DESCRIPTION

static final String METRICS_DESCRIPTION
Description

See Also:
Constant Field Values

MASTER_ACTIVE_TIME_NAME

static final String MASTER_ACTIVE_TIME_NAME
See Also:
Constant Field Values

MASTER_START_TIME_NAME

static final String MASTER_START_TIME_NAME
See Also:
Constant Field Values

AVERAGE_LOAD_NAME

static final String AVERAGE_LOAD_NAME
See Also:
Constant Field Values

NUM_REGION_SERVERS_NAME

static final String NUM_REGION_SERVERS_NAME
See Also:
Constant Field Values

NUM_DEAD_REGION_SERVERS_NAME

static final String NUM_DEAD_REGION_SERVERS_NAME
See Also:
Constant Field Values

ZOOKEEPER_QUORUM_NAME

static final String ZOOKEEPER_QUORUM_NAME
See Also:
Constant Field Values

SERVER_NAME_NAME

static final String SERVER_NAME_NAME
See Also:
Constant Field Values

CLUSTER_ID_NAME

static final String CLUSTER_ID_NAME
See Also:
Constant Field Values

IS_ACTIVE_MASTER_NAME

static final String IS_ACTIVE_MASTER_NAME
See Also:
Constant Field Values

SPLIT_TIME_NAME

static final String SPLIT_TIME_NAME
See Also:
Constant Field Values

SPLIT_SIZE_NAME

static final String SPLIT_SIZE_NAME
See Also:
Constant Field Values

CLUSTER_REQUESTS_NAME

static final String CLUSTER_REQUESTS_NAME
See Also:
Constant Field Values

RIT_COUNT_NAME

static final String RIT_COUNT_NAME
See Also:
Constant Field Values

RIT_COUNT_OVER_THRESHOLD_NAME

static final String RIT_COUNT_OVER_THRESHOLD_NAME
See Also:
Constant Field Values

RIT_OLDEST_AGE_NAME

static final String RIT_OLDEST_AGE_NAME
See Also:
Constant Field Values

MASTER_ACTIVE_TIME_DESC

static final String MASTER_ACTIVE_TIME_DESC
See Also:
Constant Field Values

MASTER_START_TIME_DESC

static final String MASTER_START_TIME_DESC
See Also:
Constant Field Values

AVERAGE_LOAD_DESC

static final String AVERAGE_LOAD_DESC
See Also:
Constant Field Values

NUMBER_OF_REGION_SERVERS_DESC

static final String NUMBER_OF_REGION_SERVERS_DESC
See Also:
Constant Field Values

NUMBER_OF_DEAD_REGION_SERVERS_DESC

static final String NUMBER_OF_DEAD_REGION_SERVERS_DESC
See Also:
Constant Field Values

ZOOKEEPER_QUORUM_DESC

static final String ZOOKEEPER_QUORUM_DESC
See Also:
Constant Field Values

SERVER_NAME_DESC

static final String SERVER_NAME_DESC
See Also:
Constant Field Values

CLUSTER_ID_DESC

static final String CLUSTER_ID_DESC
See Also:
Constant Field Values

IS_ACTIVE_MASTER_DESC

static final String IS_ACTIVE_MASTER_DESC
See Also:
Constant Field Values

SPLIT_TIME_DESC

static final String SPLIT_TIME_DESC
See Also:
Constant Field Values

SPLIT_SIZE_DESC

static final String SPLIT_SIZE_DESC
See Also:
Constant Field Values
Method Detail

incRequests

void incRequests(int inc)
Increment the number of requests the cluster has seen.

Parameters:
inc - Ammount to increment the total by.

setRIT

void setRIT(int ritCount)
Set the number of regions in transition.

Parameters:
ritCount - count of the regions in transition.

setRITCountOverThreshold

void setRITCountOverThreshold(int ritCountOverThreshold)
Set the count of the number of regions that have been in transition over the threshold time.

Parameters:
ritCountOverThreshold - number of regions in transition for longer than threshold.

setRITOldestAge

void setRITOldestAge(long age)
Set the oldest region in transition.

Parameters:
age - age of the oldest RIT.

updateSplitTime

void updateSplitTime(long time)

updateSplitSize

void updateSplitSize(long size)


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