backtype.storm.metric.api
Class CountMetric

java.lang.Object
  extended by backtype.storm.metric.api.CountMetric
All Implemented Interfaces:
IMetric

public class CountMetric
extends Object
implements IMetric


Constructor Summary
CountMetric()
           
 
Method Summary
 Object getValueAndReset()
           
 void incr()
           
 void incrBy(long incrementBy)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CountMetric

public CountMetric()
Method Detail

incr

public void incr()

incrBy

public void incrBy(long incrementBy)

getValueAndReset

public Object getValueAndReset()
Specified by:
getValueAndReset in interface IMetric


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