org.apache.accumulo.server.metrics
public abstract class AbstractMetricsImpl extends Object
Modifier and Type | Class and Description |
---|---|
class |
AbstractMetricsImpl.Metric |
Constructor and Description |
---|
AbstractMetricsImpl() |
Modifier and Type | Method and Description |
---|---|
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
|
public void register(StandardMBean mbean) throws Exception
Exception
public void register() throws Exception
Exception
public void createMetric(String name)
public AbstractMetricsImpl.Metric getMetric(String name)
public long getMetricCount(String name)
public long getMetricAvg(String name)
public long getMetricMin(String name)
public long getMetricMax(String name)
public void add(String name, long time)
public boolean isEnabled()
protected abstract ObjectName getObjectName()
protected abstract String getMetricsPrefix()
Copyright © 2015 Apache Accumulo Project. All Rights Reserved.