Class DefaultTracerDriver

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

public class DefaultTracerDriver extends Object implements TracerDriver
Default tracer driver
  • Constructor Details

    • DefaultTracerDriver

      public DefaultTracerDriver()
  • Method Details

    • 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