org.apache.accumulo.server.metrics
Class AbstractMetricsImpl
java.lang.Object
org.apache.accumulo.server.metrics.AbstractMetricsImpl
- Direct Known Subclasses:
- TabletServer, TabletServerMinCMetrics, TabletServerScanMetrics, TabletServerUpdateMetrics, ThriftMetrics
public abstract class AbstractMetricsImpl
- extends Object
AbstractMetricsImpl
public AbstractMetricsImpl()
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 © 2013 Apache Accumulo Project. All Rights Reserved.