org.apache.oozie.util
Class InstrumentUtils

java.lang.Object
  extended by org.apache.oozie.util.InstrumentUtils

public class InstrumentUtils
extends Object

Instrument utilities.


Constructor Summary
InstrumentUtils()
           
 
Method Summary
static void incrCommandCounter(String name, int count, Instrumentation instrumentation)
          Used to increment command counters.
static void incrCounter(String group, String name, int count, Instrumentation instrumentation)
          Convenience method to increment counters.
static void incrJobCounter(String name, int count, Instrumentation instrumentation)
          Used to increment job counters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstrumentUtils

public InstrumentUtils()
Method Detail

incrCounter

public static void incrCounter(String group,
                               String name,
                               int count,
                               Instrumentation instrumentation)
Convenience method to increment counters.

Parameters:
group - the group name.
name - the counter name.
count - increment count.
instrumentation - the Instrumentation instance

incrCommandCounter

public static void incrCommandCounter(String name,
                                      int count,
                                      Instrumentation instrumentation)
Used to increment command counters.

Parameters:
name - the name
count - the increment count
instrumentation - the Instrumentation instance

incrJobCounter

public static void incrJobCounter(String name,
                                  int count,
                                  Instrumentation instrumentation)
Used to increment job counters. The counter name s the same as the command name.

Parameters:
name - the name
count - the increment count
instrumentation - the Instrumentation instance


Copyright © 2013 Apache Software Foundation. All Rights Reserved.