Examples of Statistic


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

    * @param name
    * @return
    */
   public Statistic getStatistic(String name)
   {
      Statistic stat = (Statistic) statistics.get(name);
      return stat;
   }
View Full Code Here

Examples of net.sourceforge.stat4j.Statistic

    return a;
  }

  public Statistic createStatistic(String name) {
    String prefix = "statistic." + name + ".";
    Statistic s = new Statistic();
    Properties p = Util.createProperties(prefix);
    s.init(name, p);
    return s;
  }
View Full Code Here

Examples of org.apache.uima.aae.monitor.statistics.Statistic

    }
    return false;
  }

  public void initialize() throws AsynchAEException {
    Statistic statistic = null;
    if ((statistic = getMonitor().getLongNumericStatistic("", Monitor.ProcessCount)) == null) {
      statistic = new LongNumericStatistic(Monitor.ProcessCount);
      getMonitor().addStatistic("", statistic);
    }
    if ((statistic = getMonitor().getLongNumericStatistic("", Monitor.ProcessErrorCount)) == null) {
View Full Code Here

Examples of org.apache.uima.aae.monitor.statistics.Statistic

    }
    return parentController.getIndex() + 1;
  }

  private void initializeServiceStats() {
    Statistic statistic = null;
    if ((statistic = getMonitor().getLongNumericStatistic("", Monitor.TotalDeserializeTime)) == null) {
      statistic = new LongNumericStatistic(Monitor.TotalDeserializeTime);
      getMonitor().addStatistic("", statistic);
    }
    if ((statistic = getMonitor().getLongNumericStatistic("", Monitor.TotalSerializeTime)) == null) {
View Full Code Here

Examples of org.bukkit.Statistic

        dB.report(scriptEntry, getName(), action.debug() + statistic.debug() + amount.debug() + players.debug()
                + (material != null ? material.debug() : entity != null ? entity.debug() : ""));

        Action act = Action.valueOf(action.asString().toUpperCase());
        Statistic stat = Statistic.valueOf(statistic.asString().toUpperCase());
        int amt = amount.asInt();
        switch (stat.getType()) {

            case BLOCK:
            case ITEM:
                Material mat = material.getMaterial();
                switch (act) {
View Full Code Here

Examples of org.fusesource.commons.management.Statistic

        control.verify();
    }

    @Test
    public void testCreateStatistics() throws Exception {
        Statistic counter = strategy.createStatistic("counter", null, UpdateMode.COUNTER);
        counter.updateValue(150L);
        counter.updateValue(50L);       
        assertEquals(200L, counter.getValue());

        Statistic value = strategy.createStatistic("value", null, UpdateMode.VALUE);
        value.updateValue(150L);
        value.updateValue(50L);       
        assertEquals(50L, value.getValue());
    }
View Full Code Here

Examples of org.glassfish.external.statistics.Statistic

        String result ="";
        if (value == null) return result;

        try {
            if (value instanceof Statistic) {
                Statistic statisticObject = (Statistic)value;
                result = result + getStatisticRepresentation(statisticObject);
            } else if (value instanceof Stats) {
                String statResult;
                for (Statistic statistic: ((Stats)value).getStatistics()) {
                    statResult = getStatisticRepresentation(statistic);
View Full Code Here

Examples of org.jivesoftware.openfire.stats.Statistic

    }

    /****************** Statistics code ************************/
    private void addTotalRoomStats() {
        // Register a statistic.
        Statistic statistic = new Statistic() {
            public String getName() {
                return LocaleUtils.getLocalizedString("muc.stats.active_group_chats.name");
            }

            public Type getStatType() {
View Full Code Here

Examples of org.jivesoftware.openfire.stats.Statistic

        StatisticsManager.getInstance().addStatistic(roomsStatKey, statistic);
    }

    private void addTotalOccupantsStats() {
        // Register a statistic.
        Statistic statistic = new Statistic() {
            public String getName() {
                return LocaleUtils.getLocalizedString("muc.stats.occupants.name");
            }

            public Type getStatType() {
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.