Examples of inc()


Examples of org.apache.hadoop.metrics.util.MetricsTimeVaryingRate.inc()

    m.inc(processingTime);
  }
  else {
    rpcMetrics.metricsList.put(call.getMethodName(), new MetricsTimeVaryingRate(call.getMethodName()));
    m = rpcMetrics.metricsList.get(call.getMethodName());
    m.inc(processingTime);
  }

        if (verbose) log("Return: "+value);

        return new ObjectWritable(method.getReturnType(), value);
View Full Code Here

Examples of org.apache.hadoop.metrics.util.MetricsTimeVaryingRate.inc()

            m = (MetricsTimeVaryingRate) rpcMetrics.registry.get(
                call.getMethodName());
          }
        }
        // record call time in microseconds
        m.inc(processingMicroTime);

        if (verbose) log("Return: "+value);

        return new ObjectWritable(method.getReturnType(), value);
View Full Code Here

Examples of org.apache.hadoop.metrics.util.MetricsTimeVaryingRate.inc()

        rpcMetrics.rpcProcessingTime.inc(processingTime);

  MetricsTimeVaryingRate m = rpcMetrics.metricsList.get(call.getMethodName());

  if (m != null) {
    m.inc(processingTime);
  }
  else {
    rpcMetrics.metricsList.put(call.getMethodName(), new MetricsTimeVaryingRate(call.getMethodName()));
    m = rpcMetrics.metricsList.get(call.getMethodName());
    m.inc(processingTime);
View Full Code Here

Examples of org.apache.hadoop.metrics.util.MetricsTimeVaryingRate.inc()

    m.inc(processingTime);
  }
  else {
    rpcMetrics.metricsList.put(call.getMethodName(), new MetricsTimeVaryingRate(call.getMethodName()));
    m = rpcMetrics.metricsList.get(call.getMethodName());
    m.inc(processingTime);
  }

        if (verbose) log("Return: "+value);

        return new ObjectWritable(method.getReturnType(), value);
View Full Code Here

Examples of org.apache.hadoop.metrics.util.MetricsTimeVaryingRate.inc()

  public synchronized void inc(String name, int amt) {
    MetricsTimeVaryingRate m = get(name);
    if (m == null) {
      m = create(name);
    }
    m.inc(amt);
  }

  /**
   * Push the metrics to the monitoring subsystem on doUpdate() call.
   * @param context ctx
View Full Code Here

Examples of org.apache.hadoop.metrics.util.MetricsTimeVaryingRate.inc()

    if (m == null) {
      m = new MetricsTimeVaryingRate(name, this.registry);
      this.needsUpdateMessage = true;
    }
    if (numOps > 0) {
      m.inc(numOps, amt);
    }
  }
 
  /**
   * Clear all metrics this exposes.
View Full Code Here

Examples of org.apache.hadoop.metrics.util.MetricsTimeVaryingRate.inc()

  public synchronized void inc(String name, int amt) {
    MetricsTimeVaryingRate m = get(name);
    if (m == null) {
      m = create(name);
    }
    m.inc(amt);
  }

  /**
   * Push the metrics to the monitoring subsystem on doUpdate() call.
   * @param context
View Full Code Here

Examples of org.apache.hadoop.metrics.util.MetricsTimeVaryingRate.inc()

        rpcMetrics.rpcProcessingTime.inc(processingTime);

  MetricsTimeVaryingRate m = rpcMetrics.metricsList.get(call.getMethodName());

  if (m != null) {
    m.inc(processingTime);
  }
  else {
    rpcMetrics.metricsList.put(call.getMethodName(), new MetricsTimeVaryingRate(call.getMethodName()));
    m = rpcMetrics.metricsList.get(call.getMethodName());
    m.inc(processingTime);
View Full Code Here

Examples of org.apache.hadoop.raid.Statistics.Counters.inc()

    if (lfs == null) {
      return false;
    }
    RaidState state = checker.check(info, src, now, true, lfs);
    Counters counters = stateToSourceCounters.get(state);
    counters.inc(lfs);
    if (state == RaidState.RAIDED) {
      long paritySize = computeParitySize(lfs, targetReplication);
      estimatedParitySize += paritySize;
      estimatedDoneParitySize += paritySize;
      estimatedDoneSourceSize += DirectoryStripeReader.getDirPhysicalSize(lfs);
View Full Code Here

Examples of org.apache.jena.atlas.lib.RefLong.inc()

   
    @Test public void ref_02()
    {
        RefLong ref = new RefLong() ;
        assertEquals(0, ref.value()) ;
        ref.inc() ;
        assertEquals(1, ref.value()) ;
        ref.dec() ;
        assertEquals(0, ref.value()) ;
    }
   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.