Examples of incr()


Examples of com.sun.codemodel.internal.JVar.incr()

                    $len)));

        JForLoop _for = $setAll.body()._for();
        JVar $i = _for.init( codeModel.INT, "i", JExpr.lit(0) );
        _for.test( JOp.lt($i,$len) );
        _for.update( $i.incr() );
        _for.body().assign(acc.ref(true).component($i), castToImplType(acc.box($value.component($i))));

        writer.javadoc().addParam($value)
            .append("allowed objects are\n")
            .append(returnTypes);
View Full Code Here

Examples of com.sun.jini.test.spec.iiop.util.TestRemoteInterface.incr()

        if ((cType == NOARG_FACTORY) || useNullOrb) {
            connectStub(stub);
        }

        for (i = 0; i < 5; ++i) {
            res = stub.incr(i);

            // PASS
            logger.log(Level.FINE,
                    "Incr method with " + i + " as a parameter did not "
                    + " throw any exceptions as expected.");
View Full Code Here

Examples of dovetaildb.util.MutableInt.incr()

            val.wait();
          } catch (InterruptedException e) {
            throw new RuntimeException(e);
          }
        }
        val.incr();
      }
    }
    public void lockForWrite(int i) {
      MutableInt val;
      synchronized(map) {
View Full Code Here

Examples of info.archinnov.achilles.type.Counter.incr()

        entity.setCount(CounterBuilder.incr());
        entity = manager.insert(entity);

        logAsserter.prepareLogLevel();
        Counter counter = entity.getCount();
        counter.incr(10L);
        assertThat(counter.get()).isEqualTo(11L);
        logAsserter.assertConsistencyLevels(ONE);
    }

    @Test
View Full Code Here

Examples of net.spy.memcached.MemcachedClient.incr()

            for (int i = 0; i < 100; i++) {
                final OperationFuture<Boolean> future = client.set(String.valueOf(i), 0, i);
                future.get();
            }
            for (int i = 0; i < 100; i++) {
                assertEquals(i * 2, client.incr(String.valueOf(i), i));
            }
            for (int i = 100; i < 120; i++) {
                assertEquals(-1, client.incr(String.valueOf(i), i));
            }
            for (int i = 0; i < 100; i++) {
View Full Code Here

Examples of org.apache.hadoop.lib.service.Instrumentation.incr()

    Server server = new Server("server", dir, dir, dir, dir, conf);
    server.init();

    Instrumentation instrumentation = server.get(Instrumentation.class);
    Assert.assertNotNull(instrumentation);
    instrumentation.incr("g", "c", 1);
    instrumentation.incr("g", "c", 2);
    instrumentation.incr("g", "c1", 2);

    Instrumentation.Cron cron = instrumentation.createCron();
    cron.start();
View Full Code Here

Examples of org.apache.hadoop.metrics2.lib.MetricMutableCounterLong.incr()

   * @param key the name of the counter
   * @param delta the ammount to increment
   */
  public void incCounters(String key, long delta) {
    MetricMutableCounterLong counter = metricsRegistry.getLongCounter(key, 0l);
    counter.incr(delta);

  }

  @Override
  public void updateHistogram(String name, long value) {
View Full Code Here

Examples of org.apache.hadoop.metrics2.lib.MetricMutableGaugeLong.incr()

   * @param delta The amount to increment the gauge by.
   */
  public void incGauge(String gaugeName, long delta) {
    MetricMutableGaugeLong gaugeInt = metricsRegistry.getLongGauge(gaugeName,
        0l);
    gaugeInt.incr(delta);
  }

  /**
   * Decrease the value of a named gauge.
   *
 
View Full Code Here

Examples of org.apache.hadoop.metrics2.lib.MutableCounterLong.incr()

   * @param key   the name of the counter
   * @param delta the ammount to increment
   */
  public void incCounters(String key, long delta) {
    MutableCounterLong counter = metricsRegistry.getLongCounter(key, 0l);
    counter.incr(delta);

  }

  @Override
  public void updateHistogram(String name, long value) {
View Full Code Here

Examples of org.apache.hadoop.metrics2.lib.MutableCounterLong.incr()

   * @param key   the name of the counter
   * @param delta the ammount to increment
   */
  public void incCounters(String key, long delta) {
    MutableCounterLong counter = metricsRegistry.getLongCounter(key, 0l);
    counter.incr(delta);

  }

  @Override
  public void updateHistogram(String name, long 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.