Esempio n. 1
0
 public final Timer.Context indexTimer(String type, String op) {
   String name = index + ":" + type + ":" + op + ":ts";
   return MetricCollectorImpl.current().getTimer(clazz, name);
 }
Esempio n. 2
0
 public final void failedIncr(String type, String op, Exception e) {
   String name = index + ":" + type + ":" + op + ":" + e.getClass().getSimpleName();
   MetricCollectorImpl.current().incrementCounter(clazz, name);
 }
Esempio n. 3
0
 public final void indexIncr(String type, String op) {
   String name = index + ":" + type + ":" + op;
   MetricCollectorImpl.current().incrementCounter(clazz, name);
 }