Examples of increment()


Examples of com.prodeagle.java.counters.BatchCounter.increment()

    _logger.info("Number of counters to randomly increment: " + numberOfCounters);
   
    BatchCounter batchCounters = new BatchCounter();
   
    while (numberOfCounters > 0) {
      batchCounters.increment("Counter" + numberOfCounters);
      numberOfCounters--;
    }
   
    batchCounters.commit();
  }
View Full Code Here

Examples of com.proofpoint.testing.TestingTicker.increment()

        // should have no compressions with so few values and the allowed error
        assertEquals(digest.getCompressions(), 0);
        assertEquals(digest.getConfidenceFactor(), 0.0);

        ticker.increment(60, TimeUnit.SECONDS);
        addAll(digest, asList(10, 11, 12, 13, 14, 15, 16, 17, 18, 19));

        // Considering that the first 10 values now have a weight of 0.5 per the alpha factor, they only contributed a count
        // of 5 to rank computations. Therefore, the 50th percentile is equivalent to a weighted rank of (5 + 10) / 2 = 7.5,
        // which corresponds to value 12
View Full Code Here

Examples of com.scaleunlimited.cascading.LoggingFlowProcess.increment()

    @SuppressWarnings("rawtypes")
    @Override
    public void run() {
        LoggingFlowProcess process = _fetchMgr.getProcess();
        process.increment(FetchCounters.DOMAINS_PROCESSING, 1);
        final long minPageFetchInterval = _httpFetcher.getFetcherPolicy().getMinPageFetchInterval();
       
        try {
            // TODO KKr - when fetching the last item, send a Connection: close
            // header to let the server know it doesn't need to keep the socket open.
View Full Code Here

Examples of com.sleepycat.je.utilint.IntStat.increment()

            owners.add(lock.nOwners());

            /* Go through all the owners for a lock. */
            for (LockInfo info : lock.getOwnersClone()) {
                if (info.getLockType().isWriteLock()) {
                    writeLocks.increment();
                } else {
                    readLocks.increment();
                }
            }
        }
View Full Code Here

Examples of com.strobel.core.MutableInteger.increment()

        if (count == null) {
            map.put(variable, new MutableInteger(1));
        }
        else {
            count.increment();
        }
    }

    // </editor-fold>
}
View Full Code Here

Examples of com.subhajit.common.util.IProgress.increment()

    new TaskRunner(new ISwingRunnableWithProgress() {
      public void run(IProgress progresses) throws Throwable {
        IProgress progress = progresses;
        for (int i = 0; i < 100; i++) {
          Thread.sleep(random.nextInt(5) * 100);
          progress.increment(1, "" + (i + 1));
          if (Thread.currentThread().isInterrupted()) {
            return;
          }
        }
      }
View Full Code Here

Examples of com.subhajit.eclipse.swt.SwtProgressImpl.increment()

            List<IJavaProject> dependentProjects = BuildUtils
                .getDependentProjects(javaProject, progress);
            progress.setRange(0, dependentProjects.size());
            int index = 0;
            for (IJavaProject project : dependentProjects) {
              progress.increment(1, "Building "
                  + project.getProject().getName());
              BuildUtils.buildJavaProjectInteractively0(project,
                  progress, buildKind, problems);
              progress.setRange(0, dependentProjects.size());
              for (int i = 0; i < index; i++) {
View Full Code Here

Examples of com.sun.sgs.test.impl.service.task.TestTaskServiceImpl.Counter.increment()

        txnSchedulerZero.runTask(
            new TestAbstractKernelRunnable() {
                public void run() {
                    Counter counter = getClearedCounter();
                    taskServiceZero.scheduleTask(new TestTask());
                    counter.increment();
                }
            }, id);

        Thread.sleep(500);
        assertCounterClearXAction("An immediate task did not run");
View Full Code Here

Examples of com.volantis.xml.expression.PositionScope.increment()

        // Iterate over the sequence.
        int length = sequence.getLength();

        for (int i = 1; i <= length; i += 1) {
            // Increment to the next position in the sequence
            pc.increment();

            // Get the item.
            try {
                variable.setValue(sequence.getItem(i));
            } catch (SequenceIndexOutOfBoundsException e) {
View Full Code Here

Examples of edu.umd.cloud9.io.map.HMapSFW.increment()

        }
        bagOfTargetTokens.add(eTerm);
        if (isOne2Many <= 1) {
          if (probDist.containsKey(fTerm)) {
            HMapSFW eToken2Prob = probDist.get(fTerm);
            eToken2Prob.increment(eTerm, weight);
          }else {
            HMapSFW eToken2Prob = new HMapSFW();
            eToken2Prob.put(eTerm, weight);
            probDist.put(fTerm, eToken2Prob);
          }
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.