org.apache.curator.utils
Class DefaultTracerDriver

java.lang.Object
  extended by org.apache.curator.utils.DefaultTracerDriver
All Implemented Interfaces:
TracerDriver

public class DefaultTracerDriver
extends Object
implements TracerDriver

Default tracer driver


Constructor Summary
DefaultTracerDriver()
           
 
Method Summary
 void addCount(String name, int increment)
          Add to a named counter
 void addTrace(String name, long time, TimeUnit unit)
          Record the given trace event
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTracerDriver

public DefaultTracerDriver()
Method Detail

addTrace

public void addTrace(String name,
                     long time,
                     TimeUnit unit)
Description copied from interface: TracerDriver
Record the given trace event

Specified by:
addTrace in interface TracerDriver
Parameters:
name - of the event
time - time event took
unit - time unit

addCount

public void addCount(String name,
                     int increment)
Description copied from interface: TracerDriver
Add to a named counter

Specified by:
addCount in interface TracerDriver
Parameters:
name - name of the counter
increment - amount to increment


Copyright © 2011–2014 The Apache Software Foundation. All rights reserved.