org.apache.curator.drivers
Interface TracerDriver

All Known Implementing Classes:
DefaultTracerDriver

public interface TracerDriver

Mechanism for timing methods and recording counters


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
 

Method Detail

addTrace

void addTrace(String name,
              long time,
              TimeUnit unit)
Record the given trace event

Parameters:
name - of the event
time - time event took
unit - time unit

addCount

void addCount(String name,
              int increment)
Add to a named counter

Parameters:
name - name of the counter
increment - amount to increment


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