Examples of Statistic


Examples of belotetime.application.data.Statistic

  @SuppressWarnings({ "unchecked", "rawtypes" })
  public StatisticsStage(User user) throws Exception {
    u = user;
    try {
      stat = new Statistic(u.getUser());
    } catch (Exception e) {

      throw e;
    }
View Full Code Here

Examples of com.dianping.cat.consumer.metric.model.entity.Statistic

      Map<String, double[]> currentValues = m_pruductDataFetcher.buildGraphData(report);

      mergeMap(sourceValue, currentValues, totalSize, index);
      index++;

      Statistic ipList = report.getStatistics().get(SystemReportConvertor.IP_LIST_KEY);

      if (ipList != null) {
        ipAddrs.addAll(ipList.getStatisticsItems().keySet());
      }
    }
    return sourceValue;
  }
View Full Code Here

Examples of com.dianping.cat.statistic.ServerStatistic.Statistic

    if (end > current) {
      end = current;
    }
    for (; start < end; start += minute) {
      Statistic state = m_serverStateManager.findOrCreateState(start);
      Message temp = machine.findOrCreateMessage(start);
      Map<String, AtomicLong> totals = state.getMessageTotals();
      Map<String, AtomicLong> totalLosses = state.getMessageTotalLosses();
      Map<String, AtomicLong> sizes = state.getMessageSizes();

      for (Entry<String, AtomicLong> entry : totals.entrySet()) {
        String domain = entry.getKey();
        long value = entry.getValue().get();
        ProcessDomain processDomain = machine.findOrCreateProcessDomain(domain);
        Detail detail = processDomain.findOrCreateDetail(start);

        processDomain.setTotal(value + processDomain.getTotal());
        detail.setTotal(value + detail.getTotal());
      }
      for (Entry<String, AtomicLong> entry : totalLosses.entrySet()) {
        String domain = entry.getKey();
        long value = entry.getValue().get();
        ProcessDomain processDomain = machine.findOrCreateProcessDomain(domain);
        Detail detail = processDomain.findOrCreateDetail(start);

        processDomain.setTotalLoss(value + processDomain.getTotalLoss());
        detail.setTotalLoss(value + detail.getTotalLoss());
      }
      for (Entry<String, AtomicLong> entry : sizes.entrySet()) {
        String domain = entry.getKey();
        long value = entry.getValue().get();
        ProcessDomain processDomain = machine.findOrCreateProcessDomain(domain);
        Detail detail = processDomain.findOrCreateDetail(start);

        processDomain.setSize(value + processDomain.getSize());
        detail.setSize(value + detail.getSize());
      }

      long messageTotal = state.getMessageTotal();
      long messageTotalLoss = state.getMessageTotalLoss();
      long messageSize = state.getMessageSize();
      long blockTotal = state.getBlockTotal();
      long blockLoss = state.getBlockLoss();
      long blockTime = state.getBlockTime();
      long pigeonTimeError = state.getPigeonTimeError();
      long networkTimeError = state.getNetworkTimeError();
      long messageDump = state.getMessageDump();
      long messageDumpLoss = state.getMessageDumpLoss();
      int processDelayCount = state.getProcessDelayCount();
      double processDelaySum = state.getProcessDelaySum();

      temp.setTotal(messageTotal).setTotalLoss(messageTotalLoss).setSize(messageSize);
      temp.setBlockTotal(blockTotal).setBlockLoss(blockLoss).setBlockTime(blockTime);
      temp.setPigeonTimeError(pigeonTimeError).setNetworkTimeError(networkTimeError).setDump(messageDump);
      temp.setDumpLoss(messageDumpLoss).setDelayCount(processDelayCount).setDelaySum(processDelaySum);
View Full Code Here

Examples of com.sun.org.glassfish.external.statistics.Statistic

    protected StatsImpl(StatisticImpl[] statisticArray) {
        statArray = statisticArray;
    }

    public synchronized Statistic getStatistic(String statisticName) {
        Statistic stat = null;
        for (Statistic s : statArray) {
            if (s.getName().equals(statisticName)) {
                stat = s;
                break;
            }
View Full Code Here

Examples of entagged.tageditor.tools.renaming.data.stat.Statistic

   *      entagged.tageditor.tools.renaming.data.FileDescriptor)
   */
  public boolean accept(DirectoryDescriptor parent, FileDescriptor file) {
    if (super.accept(parent, file)) {
      // Now filter more.
      final Statistic stat = file.getStatistic();
      int errorCount = 0;
      // If the source would be copied on that cases the there is no
      // error.
      if (!renameConfig.isCopyUnmodifiableFiles()) {
        errorCount = stat
            .getProperty(CanNotWriteProperty.PROPERTY_NAME);
      }
      errorCount += stat
          .getProperty(DestinationExistsProperty.PROPERTY_NAME);
      errorCount += stat
          .getProperty(DuplicateErrorProperty.PROPERTY_NAME);
      return errorCount == 0;
    }
    return false;
  }
View Full Code Here

Examples of entagged.tageditor.tools.renaming.data.stat.Statistic

   *
   * @param file
   *            The file whose errors are about to be described.
   */
  private void handleFile(AbstractFile file) {
    Statistic stats = file.getStatistic();
    Prop[] properties = stats.getProperties();
    StringBuffer message = new StringBuffer();
    for (int i = 0; i < properties.length; i++) {
      if (properties[i].getCategories().contains(
          Category.INFORMATIVE_CATEGORY)) {
        String msg = properties[i].getDescriptionFor(file);
View Full Code Here

Examples of fr.openwide.maven.artifact.notifier.core.business.statistics.model.Statistic

    return statisticDao.listByField(Statistic_.enumKey, enumKey);
  }
 
  @Override
  public void feed(StatisticEnumKey enumKey, Integer value) throws ServiceException, SecurityServiceException {
    create(new Statistic(enumKey, value));
  }
View Full Code Here

Examples of javax.management.j2ee.statistics.Statistic

         StatelessSessionBeanStats stats = (StatelessSessionBeanStats)
            jsr77MEJB.getAttribute(ejb, "stats");
         String[] statNames = stats.getStatisticNames();
         for (int s = 0; s < statNames.length; s++)
         {
            Statistic theStat = stats.getStatistic(statNames[s]);
            getLog().debug(theStat);
         }
      }
      jsr77MEJB.remove();
   }
View Full Code Here

Examples of javax.management.j2ee.statistics.Statistic

            (StatelessSessionBeanStats) jsr77MEJB.getAttribute(oName,
               "stats");
         Statistic[] allStats = stats.getStatistics();
         for (int s = 0; s < allStats.length; s++)
         {
            Statistic theStat = allStats[s];
            getLog().debug(theStat);
         }
      }
      jsr77MEJB.remove();
   }
View Full Code Here

Examples of javax.management.j2ee.statistics.Statistic

        HashMap statsMap = new HashMap();
        Stats stats = (Stats)mbServer.getAttribute(new ObjectName(objectName), "stats");
        String[] sttsName = stats.getStatisticNames();
        Statistic[] stts = stats.getStatistics();
        for(int i = 0; i < sttsName.length; i++) {
            Statistic aStat = stats.getStatistic(sttsName[i]);
            if(aStat instanceof RangeStatistic) {
                Long current = new Long(((RangeStatistic)aStat).getCurrent());
                Long high = new Long(((RangeStatistic)aStat).getHighWaterMark());
                Long low = new Long(((RangeStatistic)aStat).getLowWaterMark());
                statsMap.put(stts[i].getName() + " Current", current);
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.