Examples of Statistics


Examples of aleksandar.djuric.statistics.Statistics

            "</font></p");
      }
    }
    else if(e.getActionCommand().equalsIgnoreCase("get statistics"))
    {
      stats = new Statistics();
      stats.start();
     
    }
    else if(e.getActionCommand().equalsIgnoreCase("Team training"))
    {
View Full Code Here

Examples of com.comphenix.protocol.metrics.Statistics

    }
   
    // Try to enable statistics
    try {
      if (config.isMetricsEnabled()) {
        statistisc = new Statistics(this);
      }
    } catch (OutOfMemoryError e) {
      throw e;
    } catch (ThreadDeath e) {
      throw e;
View Full Code Here

Examples of com.crawljax.plugins.crawloverview.model.Statistics

  }

  @Test
  public void allStatesAreShown() {
    selenium.open("/#graph");
    Statistics statistics = HOVER_CRAWL.getResult().getStatistics();
    // drawnstate -1 because the outer state is also a group.
    int drawnStates = driver.findElements(By.cssSelector("g")).size() - 1;
    List<WebElement> drawnEdges = visibleElementsByCss("path");
    assertThat(drawnStates, is(statistics.getStateStats().getTotalNumberOfStates()));
    assertThat(drawnEdges, hasSize(statistics.getEdges()));
  }
View Full Code Here

Examples of com.dp.nebula.wormhole.engine.storage.Statistics

  public String getInfo(){
    StringBuilder builder = new StringBuilder();
    Map<String,Statistics> map = getStorageMonitorCriteriaMap();
    builder.append("\n");
    for(String key : map.keySet()){
      Statistics stat = map.get(key);
      builder.append(key).append(":").append(stat.getTotalStat()).append("\n");
    }
    return builder.toString();
  }
View Full Code Here

Examples of com.esri.gpt.control.webharvest.engine.Statistics

  public String getSynchronizationStatistics() {
    RequestContext context = onPrepareViewStarted();
    try {
      HrRecord record = getEditor().getRepository();
      if (record.getRecentJobStatus() == RecentJobStatus.Running) {
        Statistics stats = context.getApplicationContext().getHarvestingEngine().getStatistics(record.getUuid());
        if (stats != null) {
          String[] params = new String[]{
            Long.toString(stats.getHarvestedCount()),
            Long.toString(stats.getValidatedCount()),
            Long.toString(stats.getPublishedCount()),
            new TimePeriod(stats.getDuration()).toLocalizedString(extractMessageBroker()),
            Double.toString(stats.getPerformance())
          };
          return extractMessageBroker().retrieveMessage("catalog.harvest.manage.edit.syncRunningStats", params);
        }
      }
      return "";
View Full Code Here

Examples of com.flaptor.util.Statistics

        ClusterManager cluster= ClusterManager.getInstance();
        NodeDescriptor node = cluster.getNodes().get(Integer.parseInt(request.getParameter("id")));
        String eventName = request.getParameter("eventName");
        MonitorModule monitor = (MonitorModule)cluster.getModule("monitor");
        MonitorNodeDescriptor mnode = monitor.getModuleNode(node);
        Statistics statistics = (Statistics)mnode.getLastState().getProperties().get("statistics");
        AdaptiveHistogram hist = statistics.getLastPeriodStats(eventName).getHistogram();
        Calendar c = DateUtil.getCanonicalDayFromToday(0);
       
        Map<Date, List<Number>> ret = new HashMap<Date, List<Number>>();
        float last = 0;
        for (int i = 0; i<100; i += 10) {
View Full Code Here

Examples of com.jada.statistics.Statistics

      Date userLastLoginDatetime = (Date) httpSession.getAttribute("userLastLoginDatetime");
      if (userLastLoginDatetime != null) {
        form.setUserLastLoginDatetime(Format.getFullDatetime(userLastLoginDatetime));
      }
      // Pull statistics
      Statistics statistics = new Statistics();
      form.setServerStats(statistics.getServerStats());
      form.setThreadStats(statistics.getThreadStats());
      form.setJvmStats(statistics.getJvmStats());
     
      form.setSiteId(site.getSiteId());
      Vector<LabelValueBean> vector = new Vector<LabelValueBean>();
      Iterator<?> iterator = null;
      if (user.getUserType().equals(Constants.USERTYPE_SUPER) || user.getUserType().equals(Constants.USERTYPE_ADMIN)) {
View Full Code Here

Examples of com.jolbox.bonecp.Statistics

    if (pool == null) {
      // TODO: Should we handle this properly??
      return;
    }

    Statistics stats = pool.getStatistics();

    MetricTreeObject subtree = tree.getSubtree(key);

    subtree.addInt("hitCount", stats.getCacheHits());
    subtree.addInt("missCount", stats.getCacheMiss());
    subtree.addInt("connectionsRequested", stats.getConnectionsRequested());
    subtree.addInt("statementsCached", stats.getStatementsCached());
    subtree.addInt("statementsExecuted", stats.getStatementsExecuted());
    subtree.addInt("statementsPrepared", stats.getStatementsPrepared());
    subtree.addInt("cumulativeConnectionWaitTime", stats.getCumulativeConnectionWaitTime());
    subtree.addInt("cumulativeStatementExecutionTime", stats.getCumulativeStatementExecutionTime());
    subtree.addInt("cumulativeStatementPrepareTime", stats.getCumulativeStatementPrepareTime());
  }
View Full Code Here

Examples of com.lissenberg.blog.domain.Statistics

     * @return updated statistics
     */
    public Statistics updateStatistics(Long blogId, RequestInfo requestInfo) {
        Date now = new Date();
        entityManager.persist(requestInfo);
        Statistics statistics = entityManager.find(Statistics.class, blogId);
        if (statistics == null) {
            statistics = new Statistics();
            statistics.setBlogId(blogId);
            statistics.setFirstVisit(now);
            statistics.setLastVisit(now);
            statistics.setHits(1);
            entityManager.persist(statistics);
        } else {
            statistics.setLastVisit(now);
            statistics.addHit();
            entityManager.merge(statistics);
        }
        entityManager.flush();
        entityManager.detach(statistics);
        entityManager.detach(requestInfo);
View Full Code Here

Examples of com.opengamma.engine.exec.stats.TotallingGraphStatisticsGathererProvider.Statistics

    com.opengamma.engine.exec.stats.GraphExecutionStatistics graphExecutionStatistics = getGraphExecutionStatistics();
    return graphExecutionStatistics != null ? graphExecutionStatistics.getProcessedGraphs() : 0;
  }
 
  private com.opengamma.engine.exec.stats.GraphExecutionStatistics getGraphExecutionStatistics() {
    Statistics statisticsGatherer = _statisticsProvider.getStatisticsGatherer(_viewProcessId);
    List<com.opengamma.engine.exec.stats.GraphExecutionStatistics> executionStatistics = statisticsGatherer.getExecutionStatistics();
    for (com.opengamma.engine.exec.stats.GraphExecutionStatistics graphExecutionStatistics : executionStatistics) {
      if (graphExecutionStatistics.getCalcConfigName().equals(_calcConfigName) && graphExecutionStatistics.getViewProcessId().equals(_viewProcessId)) {
        return graphExecutionStatistics;
      }
    }
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.