class JobCounterGauge implements Gauge<Long> {

  @Override
  public Long getValue() {
    try {
      if (groupName != null) {
        return job.getCounters().findCounter(groupName, counterName).getValue();
      } else {
        return job.getCounters().findCounter(counter).getValue();
      }
    } catch (IOException e) {
      LOG.warn("Could not get value for counter " + counter, e);
    }
    return 0L;
  }

  public  JobCounterGauge(Job job, String groupName, String counterName);
  public  JobCounterGauge(Job job, Enum<?> counter);
  private  JobCounterGauge(Job job, Enum<?> counter, String groupName, String counterName);

}