Examples of inc()


Examples of org.apache.felix.ipojo.handlers.dependency.ServiceUsage.Usage.inc()

        if (usage.m_stack == 0) { // uninitialized usage.
            if (usage.m_componentStack > 0) {
                // We comes from the component who didn't touch the service.
                // So we initialize the usage.
                createServiceObject(usage);
                usage.inc(); // Start the caching, so set the stack level to 1
                m_usage.set(usage); // Required by Dalvik.
                if (isAggregate()) {
                    Object obj = usage.m_object;
                    if (obj instanceof Set) {
                        List<Object> list = new ArrayList<Object>();
View Full Code Here

Examples of org.apache.felix.ipojo.handlers.dependency.ServiceUsage.Usage.inc()

        // Initialize the thread local object is not already touched.
        Usage usage = m_usage.get();
        if (usage.m_stack == 0) { // uninitialized usage.
            createServiceObject(usage);
            usage.inc(); // Start the caching, so set the stack level to 1
            m_usage.set(usage); // Required by Dalvik
        }
        if (!m_isProxy) {
            return usage.m_object;
        } else {
View Full Code Here

Examples of org.apache.felix.ipojo.handlers.dependency.ServiceUsage.Usage.inc()

    public void onEntry(Object pojo, Member method, Object[] args) {
        if (m_usage != null) {
            Usage usage = m_usage.get();
            usage.incComponentStack(); // Increment the number of component access.
            if (usage.m_stack > 0) {
                usage.inc();
                m_usage.set(usage); // Set the Thread local as value has been modified
            }
        }
    }
View Full Code Here

Examples of org.apache.hadoop.hbase.ipc.HBaseRpcMetrics.inc()

    }

    public void incTest(int amt) {
      HBaseRpcMetrics metrics = getRpcMetrics();
      // force an increment so we have something to check for
      metrics.inc(metrics.getMetricName(TestMetrics.class, "test"), amt);
    }
  }

  /**
   * Dummy metrics context to allow retrieval of values
View Full Code Here

Examples of org.apache.hadoop.mapred.StatisticsCollector.Stat.inc()

    TimeWindow sincStart = StatisticsCollector.SINCE_START;
    TimeWindow[] windows = {sincStart, window};
   
    Stat stat = collector.createStat("m1", windows);
   
    stat.inc(3);
    collector.update();
    assertEquals(0, stat.getValues().get(window).getValue());
    assertEquals(3, stat.getValues().get(sincStart).getValue());
   
    stat.inc(3);
View Full Code Here

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

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

            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

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 HbaseObjectWritable(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
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.