Package org.apache.storm.metric.api
Class GlobalMetrics
- java.lang.Object
-
- org.apache.storm.metric.api.GlobalMetrics
-
public final class GlobalMetrics extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
incr(String counterName)
Not thread safe increment of counterName.static void
incrBy(String counterName, int incVal)
Not thread safe 'incrementing by' of counterName.static void
safeIncr(String counterName)
Thread safe created increment of counterName.static void
safeIncrBy(String counterName, int incVal)
Thread safe created increment of counterName.
-
-
-
Method Detail
-
incr
public static void incr(String counterName)
Not thread safe increment of counterName. Counter doesn't exist unless incremented once
-
incrBy
public static void incrBy(String counterName, int incVal)
Not thread safe 'incrementing by' of counterName. Counter doesn't exist unless incremented once
-
safeIncr
public static void safeIncr(String counterName)
Thread safe created increment of counterName. (Slow)
-
safeIncrBy
public static void safeIncrBy(String counterName, int incVal)
Thread safe created increment of counterName. (Slow)
-
-