Package org.apache.hadoop.metrics.util

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


      } catch (Exception e) {
        LOG.error(e);
      }
    }
    if (numOps > 0) {
      m.inc(numOps, amt);
    }
  }
 
  /**
   * Clear all metrics this exposes.
View Full Code Here


            LOG.info("Error register " + call.getMethodName(), iae);
            m = (MetricsTimeVaryingRate) rpcDetailedMetrics.registry.get(
                call.getMethodName());
          }
        }
        m.inc(processingTime);

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

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

        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

    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 HbaseObjectWritable(method.getReturnType(), value);
View Full Code Here

        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

    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

            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

        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

    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

  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

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.