Examples of increment()


Examples of org.rioproject.opstring.OperationalStringManager.increment()

            Assert.assertEquals(1, opstring.getServices().length);
            testManager.waitForDeployment(mgr);
            ServiceBeanInstance[] instances =
                cybernode.getServiceBeanInstances(opstring.getServices()[0]);
            Assert.assertEquals(1, instances.length);           
            mgr.increment(opstring.getServices()[0], true, null);
            ServiceMonitor<Simple> sMon =
                new ServiceMonitor<Simple>(testManager.getServiceDiscoveryManager(), Simple.class);
            sMon.waitFor(2);
            instances =
                cybernode.getServiceBeanInstances(opstring.getServices()[0]);
View Full Code Here

Examples of org.springframework.batch.repeat.context.RepeatContextCounter.increment()

  public void handleException(RepeatContext context, Throwable throwable) throws Throwable {

    IntegerHolder key = exceptionClassifier.classify(throwable);

    RepeatContextCounter counter = getCounter(context, key);
    counter.increment();
    int count = counter.getCount();
    int threshold = key.getValue();
    if (count > threshold) {
      throw throwable;
    }
View Full Code Here

Examples of org.springframework.osgi.extender.internal.util.concurrent.Counter.increment()

    long time = timeout * SECOND;

    // use the counter to make sure the threads block
    final Counter counter = new Counter("waitForContext on bnd=" + forBundleWithSymbolicName);

    counter.increment();

    String filter = "(org.springframework.context.service.name=" + forBundleWithSymbolicName + ")";

    ServiceListener listener = new ServiceListener() {

View Full Code Here

Examples of org.springframework.xd.analytics.metrics.core.Counter.increment()

  }

  @Override
  public long increment(String name, long amount) {
    Counter c = getOrCreate(name);
    return c.increment(amount);
  }

  @Override
  public synchronized long decrement(String name) {
    Counter c = getOrCreate(name);
View Full Code Here

Examples of org.wso2.carbon.bam.data.publisher.activity.service.Counter.increment()

                            if (value instanceof Counter) {
                                ((Counter) value).increment();
                            }
                        } else {
                            Counter messageCounter = new Counter();
                            messageCounter.increment();
                            messageContext.getConfigurationContext()
                                    .setProperty(ActivityPublisherConstants.BAM_MESSAGE_COUNT, messageCounter);
                        }
                        PublisherUtils.getEventPayload(messageContext, messageContext.getConfigurationContext()
                                .getAxisConfiguration(), messageID, activityID, messageContext.getAxisService().getName(),
View Full Code Here

Examples of org.wso2.carbon.bam.data.publisher.clientstats.Counter.increment()

            log
                    .warn(ClientStatisticsPublisherConstants.BAM_USER_DEFINED_GLOBAL_FAULT_COUNTER_PROPERTY
                            + " is null");
        } else {
            if (globalFaultCounterObject instanceof Counter) {
                counter.increment(((Counter) globalFaultCounterObject).getCount());
            }
        }

        // Increment the service fault count
        if (service != null) {
View Full Code Here

Examples of org.wso2.carbon.registry.core.statistics.query.StatisticsRecord.increment()

    private void beginDBQueryLog(int level) {
        if (dbQueryLog.isDebugEnabled()) {
            StackTraceElement traceElement = Thread.currentThread().getStackTrace()[level];
            if (traceElement.getClassName().equals(this.getClass().getCanonicalName())) {
                StatisticsRecord statisticsRecord = DBQueryStatisticsLog.getStatisticsRecord();
                if (statisticsRecord.increment() == 0) {
                    DBQueryStatisticsLog.clearStatisticsRecord();
                    statisticsRecord = DBQueryStatisticsLog.getStatisticsRecord();
                    statisticsRecord.increment();
                    statisticsRecord.setOperation(traceElement.getMethodName());
                }
View Full Code Here

Examples of org.zanata.rest.dto.stats.TranslationStatistics.increment()

        msgStatistic.decrement(updateInfo.getPreviousState(), 1);
        msgStatistic.increment(updateInfo.getTransUnit().getStatus(), 1);

        wordStatistic.decrement(updateInfo.getPreviousState(),
                updateInfo.getSourceWordCount());
        wordStatistic.increment(updateInfo.getTransUnit().getStatus(),
                updateInfo.getSourceWordCount());
    }

    @Override
    public void onUserConfigChanged(UserConfigChangeEvent event) {
View Full Code Here

Examples of org.zanata.ui.model.statistic.WordStatistic.increment()

            TextFlowDAO textFlowDAO = serviceLocator.getInstance(TextFlowDAO.class);
            HTextFlow textFlow = textFlowDAO.findById(event.getTextFlowId());

            stats.decrement(event.getPreviousState(),
                    textFlow.getWordCount().intValue());
            stats.increment(event.getNewState(),
                    textFlow.getWordCount().intValue());
            versionStatisticCache.put(key, stats);
        }
    }
View Full Code Here

Examples of react.IntValue.increment()

                    @Override public void onEmit () { pressResult.text.update("Clicked"); }
                }), AxisLayout.stretch(pressResult)),
            new Group(AxisLayout.horizontal().gap(15), GREENBG).add(
                new Label("Image button"),
                new ImageButton(tile(squares, 0), tile(squares, 1)).onClick(new UnitSlot() {
                    @Override public void onEmit () { clickCount.increment(1); }
                }),
                new ValueLabel(clickCount)),
            new Group(AxisLayout.horizontal().gap(15), GREENBG).add(
                new Button("Fill Box").onClick(new UnitSlot() {
                    @Override public void onEmit () {
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.