org.apache.accumulo.server.thrift.metrics
Class ThriftMetrics

java.lang.Object
  extended by org.apache.accumulo.server.metrics.AbstractMetricsImpl
      extended by org.apache.accumulo.server.thrift.metrics.ThriftMetrics
All Implemented Interfaces:
ThriftMetricsMBean

public class ThriftMetrics
extends AbstractMetricsImpl
implements ThriftMetricsMBean


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.accumulo.server.metrics.AbstractMetricsImpl
AbstractMetricsImpl.Metric
 
Field Summary
 
Fields inherited from interface org.apache.accumulo.server.thrift.metrics.ThriftMetricsMBean
execute, idle
 
Constructor Summary
ThriftMetrics(String serverName, String threadName)
           
 
Method Summary
 long getExecutionAvgTime()
           
 long getExecutionCount()
           
 long getExecutionMaxTime()
           
 long getExecutionMinTime()
           
 long getIdleAvgTime()
           
 long getIdleCount()
           
 long getIdleMaxTime()
           
 long getIdleMinTime()
           
protected  String getMetricsPrefix()
           
protected  ObjectName getObjectName()
           
 void reset()
           
 
Methods inherited from class org.apache.accumulo.server.metrics.AbstractMetricsImpl
add, createMetric, finalize, getMetric, getMetricAvg, getMetricCount, getMetricMax, getMetricMin, isEnabled, register, register
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThriftMetrics

public ThriftMetrics(String serverName,
                     String threadName)
Method Detail

getObjectName

protected ObjectName getObjectName()
Specified by:
getObjectName in class AbstractMetricsImpl

getMetricsPrefix

protected String getMetricsPrefix()
Specified by:
getMetricsPrefix in class AbstractMetricsImpl

reset

public void reset()
Specified by:
reset in interface ThriftMetricsMBean

getExecutionAvgTime

public long getExecutionAvgTime()
Specified by:
getExecutionAvgTime in interface ThriftMetricsMBean

getExecutionCount

public long getExecutionCount()
Specified by:
getExecutionCount in interface ThriftMetricsMBean

getExecutionMaxTime

public long getExecutionMaxTime()
Specified by:
getExecutionMaxTime in interface ThriftMetricsMBean

getExecutionMinTime

public long getExecutionMinTime()
Specified by:
getExecutionMinTime in interface ThriftMetricsMBean

getIdleAvgTime

public long getIdleAvgTime()
Specified by:
getIdleAvgTime in interface ThriftMetricsMBean

getIdleCount

public long getIdleCount()
Specified by:
getIdleCount in interface ThriftMetricsMBean

getIdleMaxTime

public long getIdleMaxTime()
Specified by:
getIdleMaxTime in interface ThriftMetricsMBean

getIdleMinTime

public long getIdleMinTime()
Specified by:
getIdleMinTime in interface ThriftMetricsMBean


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