Examples of interval()


Examples of etch.util.core.nio.ByteBufferPool.interval()

  {
    ByteBufferPool p = new ByteBufferPool( 101, 103, 105, 0, 0 );
    assertEquals( 101, p.bufferSize() );
    assertEquals( 103, p.min() );
    assertEquals( 105, p.limit() );
    assertEquals( 0, p.interval() );
    assertEquals( 0, p.length() );
    p.shutdown();
  }
 
  /** @throws Exception */
 
View Full Code Here

Examples of nl.topicus.onderwijs.dashboard.modules.ServiceConfiguration.interval()

        ServiceConfiguration config = curRetriever.getClass()
            .getAnnotation(ServiceConfiguration.class);
        if (config.runInRandomMode()
            || application.getMode() == DashboardMode.LiveData) {
          timer.scheduleWithFixedDelay(new TimerTask(curRetriever),
              0, config.interval(), config.unit());
        }
      }
    }
  }
View Full Code Here

Examples of oracle.olapi.data.source.Source.interval()

      else
        sortedBase = castState.base.sortAscending(castState.criterion);
           
      // Select the first N number of the sorted elements and return that
      // selection.
      return sortedBase.interval(1, Math.round(castState.N));
    }
  }
}

View Full Code Here

Examples of org.elasticsearch.action.admin.cluster.node.hotthreads.NodesHotThreadsRequest.interval()

    public void handleRequest(final RestRequest request, final RestChannel channel, final Client client) {
        String[] nodesIds = Strings.splitStringByCommaToArray(request.param("nodeId"));
        NodesHotThreadsRequest nodesHotThreadsRequest = new NodesHotThreadsRequest(nodesIds);
        nodesHotThreadsRequest.threads(request.paramAsInt("threads", nodesHotThreadsRequest.threads()));
        nodesHotThreadsRequest.type(request.param("type", nodesHotThreadsRequest.type()));
        nodesHotThreadsRequest.interval(TimeValue.parseTimeValue(request.param("interval"), nodesHotThreadsRequest.interval()));
        nodesHotThreadsRequest.snapshots(request.paramAsInt("snapshots", nodesHotThreadsRequest.snapshots()));
        client.admin().cluster().nodesHotThreads(nodesHotThreadsRequest, new RestResponseListener<NodesHotThreadsResponse>(channel) {
            @Override
            public RestResponse buildResponse(NodesHotThreadsResponse response) throws Exception {
                StringBuilder sb = new StringBuilder();
View Full Code Here

Examples of org.elasticsearch.action.admin.cluster.node.hotthreads.NodesHotThreadsRequest.interval()

    public void handleRequest(final RestRequest request, final RestChannel channel, final Client client) {
        String[] nodesIds = Strings.splitStringByCommaToArray(request.param("nodeId"));
        NodesHotThreadsRequest nodesHotThreadsRequest = new NodesHotThreadsRequest(nodesIds);
        nodesHotThreadsRequest.threads(request.paramAsInt("threads", nodesHotThreadsRequest.threads()));
        nodesHotThreadsRequest.type(request.param("type", nodesHotThreadsRequest.type()));
        nodesHotThreadsRequest.interval(TimeValue.parseTimeValue(request.param("interval"), nodesHotThreadsRequest.interval()));
        nodesHotThreadsRequest.snapshots(request.paramAsInt("snapshots", nodesHotThreadsRequest.snapshots()));
        client.admin().cluster().nodesHotThreads(nodesHotThreadsRequest, new RestResponseListener<NodesHotThreadsResponse>(channel) {
            @Override
            public RestResponse buildResponse(NodesHotThreadsResponse response) throws Exception {
                StringBuilder sb = new StringBuilder();
View Full Code Here

Examples of org.elasticsearch.search.facet.histogram.HistogramFacetBuilder.interval()

    HistogramFacetBuilder builder = FacetBuilders.histogramFacet(getName());
    builder.field(field);

    if (timeUnit != null) {
      builder.interval(interval, timeUnit);
    } else {
      builder.interval(interval);
    }

    return builder;
View Full Code Here

Examples of org.elasticsearch.search.facet.histogram.HistogramFacetBuilder.interval()

    builder.field(field);

    if (timeUnit != null) {
      builder.interval(interval, timeUnit);
    } else {
      builder.interval(interval);
    }

    return builder;
  }
}
View Full Code Here

Examples of org.jboss.errai.ioc.client.api.Timed.interval()

      final Statement methodInvokation
          = InjectUtil.invokePublicOrPrivateMethod(ctx.getInjectionContext(), Refs.get("beanInstance"),
          ctx.getMethod());

      final org.jboss.errai.common.client.util.TimeUnit timeUnit = timed.timeUnit();
      final int interval = timed.interval();

      final Statement timerDecl
          = Stmt.nestedCall(Stmt.newObject(Timer.class).extend()
          .publicOverridesMethod("run")
          .append(methodInvokation)
View Full Code Here

Examples of org.mifosplatform.portfolio.calendar.data.CalendarData.interval()

        if (depositAccountType.isFixedDeposit()) {
            depositAccount = FixedDepositAccountData.withInterestChart((FixedDepositAccountData) depositAccount, chart);
        } else if (depositAccountType.isRecurringDeposit()) {
            CalendarData calendar = this.calendarReadPlatformService.retrieveCollctionCalendarByEntity(accountId,
                    CalendarEntityType.SAVINGS.getValue());
            final Integer frequency = calendar.interval() == -1 ? 1 : calendar.interval();
            final CalendarFrequencyType calendarFrequencyType = CalendarFrequencyType.fromInt(calendar.frequencyType().getId().intValue());
            final PeriodFrequencyType periodFrequencyType = CalendarFrequencyType.from(calendarFrequencyType);
            final EnumOptionData frequencyType = CommonEnumerations.termFrequencyType(periodFrequencyType, "recurring.deposit.frequency.");
            depositAccount = RecurringDepositAccountData.withInterestChartAndRecurringDetails((RecurringDepositAccountData) depositAccount,
                    chart, frequency, frequencyType);
View Full Code Here

Examples of org.mifosplatform.portfolio.calendar.data.CalendarData.interval()

        if (depositAccountType.isFixedDeposit()) {
            depositAccount = FixedDepositAccountData.withInterestChart((FixedDepositAccountData) depositAccount, chart);
        } else if (depositAccountType.isRecurringDeposit()) {
            CalendarData calendar = this.calendarReadPlatformService.retrieveCollctionCalendarByEntity(accountId,
                    CalendarEntityType.SAVINGS.getValue());
            final Integer frequency = calendar.interval() == -1 ? 1 : calendar.interval();
            final CalendarFrequencyType calendarFrequencyType = CalendarFrequencyType.fromInt(calendar.frequencyType().getId().intValue());
            final PeriodFrequencyType periodFrequencyType = CalendarFrequencyType.from(calendarFrequencyType);
            final EnumOptionData frequencyType = CommonEnumerations.termFrequencyType(periodFrequencyType, "recurring.deposit.frequency.");
            depositAccount = RecurringDepositAccountData.withInterestChartAndRecurringDetails((RecurringDepositAccountData) depositAccount,
                    chart, frequency, frequencyType);
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.