me.prettyprint.cassandra.connection
Class MetricsOpTimer

java.lang.Object
  extended by me.prettyprint.cassandra.connection.MetricsOpTimer
All Implemented Interfaces:
HOpTimer

public class MetricsOpTimer
extends Object
implements HOpTimer


Constructor Summary
MetricsOpTimer(com.yammer.metrics.core.MetricsRegistry metricsRegistry, String clusterName, TimeUnit durationUnit, TimeUnit rateUnit)
           
MetricsOpTimer(String clusterName)
           
 
Method Summary
 Object start(String tagName)
          Start timing an operation.
 void stop(Object token, String tagName, boolean success)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetricsOpTimer

public MetricsOpTimer(com.yammer.metrics.core.MetricsRegistry metricsRegistry,
                      String clusterName,
                      TimeUnit durationUnit,
                      TimeUnit rateUnit)

MetricsOpTimer

public MetricsOpTimer(String clusterName)
Method Detail

start

public Object start(String tagName)
Description copied from interface: HOpTimer
Start timing an operation.

Specified by:
start in interface HOpTimer
Returns:
- a token that will be returned to the timer when stop(...) in invoked

stop

public void stop(Object token,
                 String tagName,
                 boolean success)
Specified by:
stop in interface HOpTimer
Parameters:
token - - the token returned from start
tagName - - the name of the tag
success - - did the oepration succeed


Copyright © 2013. All Rights Reserved.