org.apache.accumulo.server.metrics
Class AbstractMetricsImpl

java.lang.Object
  extended by org.apache.accumulo.server.metrics.AbstractMetricsImpl
Direct Known Subclasses:
LogWriterMetrics, TabletServer, TabletServerMinCMetrics, TabletServerScanMetrics, TabletServerUpdateMetrics, ThriftMetrics

public abstract class AbstractMetricsImpl
extends Object


Nested Class Summary
 class AbstractMetricsImpl.Metric
           
 
Constructor Summary
AbstractMetricsImpl()
           
 
Method Summary
 void add(String name, long time)
           
 void createMetric(String name)
           
protected  void finalize()
           
 AbstractMetricsImpl.Metric getMetric(String name)
           
 long getMetricAvg(String name)
           
 long getMetricCount(String name)
           
 long getMetricMax(String name)
           
 long getMetricMin(String name)
           
protected abstract  String getMetricsPrefix()
           
protected abstract  ObjectName getObjectName()
           
 boolean isEnabled()
           
 void register()
          Registers this MBean with the MBean Server
 void register(StandardMBean mbean)
          Registers a StandardMBean with the MBean Server
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractMetricsImpl

public AbstractMetricsImpl()
Method Detail

register

public void register(StandardMBean mbean)
              throws Exception
Registers a StandardMBean with the MBean Server

Throws:
Exception

register

public void register()
              throws Exception
Registers this MBean with the MBean Server

Throws:
Exception

createMetric

public void createMetric(String name)

getMetric

public AbstractMetricsImpl.Metric getMetric(String name)

getMetricCount

public long getMetricCount(String name)

getMetricAvg

public long getMetricAvg(String name)

getMetricMin

public long getMetricMin(String name)

getMetricMax

public long getMetricMax(String name)

add

public void add(String name,
                long time)

isEnabled

public boolean isEnabled()

getObjectName

protected abstract ObjectName getObjectName()

getMetricsPrefix

protected abstract String getMetricsPrefix()

finalize

protected void finalize()
Overrides:
finalize in class Object


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