org.apache.hadoop.hbase.metrics
Class PersistentMetricsTimeVaryingRate

java.lang.Object
  extended by org.apache.hadoop.metrics.util.MetricsBase
      extended by org.apache.hadoop.metrics.util.MetricsTimeVaryingRate
          extended by org.apache.hadoop.hbase.metrics.PersistentMetricsTimeVaryingRate

Deprecated.

@Deprecated
@InterfaceAudience.Private
public class PersistentMetricsTimeVaryingRate
extends org.apache.hadoop.metrics.util.MetricsTimeVaryingRate

This class extends MetricsTimeVaryingRate to let the metrics persist past a pushMetric() call


Field Summary
protected  long lastOper
          Deprecated.  
protected static org.apache.commons.logging.Log LOG
          Deprecated.  
protected  boolean reset
          Deprecated.  
protected  long totalOps
          Deprecated.  
 
Fields inherited from class org.apache.hadoop.metrics.util.MetricsBase
NO_DESCRIPTION
 
Constructor Summary
PersistentMetricsTimeVaryingRate(String nam, org.apache.hadoop.metrics.util.MetricsRegistry registry)
          Deprecated. Constructor - create a new metric
PersistentMetricsTimeVaryingRate(String nam, org.apache.hadoop.metrics.util.MetricsRegistry registry, String description)
          Deprecated. Constructor - create a new metric
 
Method Summary
 void inc(int numOps, long time)
          Deprecated. Increment the metrics for numOps operations
 void inc(long time)
          Deprecated. Increment the metrics for numOps operations
protected  void maintainStats()
          Deprecated.  
 void pushMetric(org.apache.hadoop.metrics.MetricsRecord mr)
          Deprecated. Push updated metrics to the mr.
 void resetMinMaxAvg()
          Deprecated. Rollover to a new interval NOTE: does not reset numOps.
 
Methods inherited from class org.apache.hadoop.metrics.util.MetricsTimeVaryingRate
getMaxTime, getMinTime, getPreviousIntervalAverageTime, getPreviousIntervalNumOps, resetMinMax
 
Methods inherited from class org.apache.hadoop.metrics.util.MetricsBase
getDescription, getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

protected static final org.apache.commons.logging.Log LOG
Deprecated. 

reset

protected boolean reset
Deprecated. 

lastOper

protected long lastOper
Deprecated. 

totalOps

protected long totalOps
Deprecated. 
Constructor Detail

PersistentMetricsTimeVaryingRate

public PersistentMetricsTimeVaryingRate(String nam,
                                        org.apache.hadoop.metrics.util.MetricsRegistry registry,
                                        String description)
Deprecated. 
Constructor - create a new metric

Parameters:
nam - the name of the metrics to be used to publish the metric
registry - - where the metrics object will be registered
description - metrics description

PersistentMetricsTimeVaryingRate

public PersistentMetricsTimeVaryingRate(String nam,
                                        org.apache.hadoop.metrics.util.MetricsRegistry registry)
Deprecated. 
Constructor - create a new metric

Parameters:
nam - the name of the metrics to be used to publish the metric
registry - - where the metrics object will be registered
Method Detail

pushMetric

public void pushMetric(org.apache.hadoop.metrics.MetricsRecord mr)
Deprecated. 
Push updated metrics to the mr. Note this does NOT push to JMX (JMX gets the info via MetricsTimeVaryingRate.getPreviousIntervalAverageTime() and MetricsTimeVaryingRate.getPreviousIntervalNumOps()

Overrides:
pushMetric in class org.apache.hadoop.metrics.util.MetricsTimeVaryingRate
Parameters:
mr - owner of this metric

inc

public void inc(int numOps,
                long time)
Deprecated. 
Increment the metrics for numOps operations

Overrides:
inc in class org.apache.hadoop.metrics.util.MetricsTimeVaryingRate
Parameters:
numOps - - number of operations
time - - time for numOps operations

inc

public void inc(long time)
Deprecated. 
Increment the metrics for numOps operations

Overrides:
inc in class org.apache.hadoop.metrics.util.MetricsTimeVaryingRate
Parameters:
time - - time for numOps operations

resetMinMaxAvg

public void resetMinMaxAvg()
Deprecated. 
Rollover to a new interval NOTE: does not reset numOps. this is an absolute value


maintainStats

protected void maintainStats()
Deprecated. 


Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.