public static void incr(String counterName) {
    org.apache.heron.api.metric.GlobalMetrics.incr(counterName);
  }
public static void incr ( String counterName ) { org . apache . heron . api . metric . GlobalMetrics . incr ( counterName ) ; }
Not thread safe increment of counterName. Counter doesn't exist unless incremented once