Examples of CountStatistic


Examples of org.glassfish.external.statistics.CountStatistic

        if(!nodes.isEmpty()) {
            TreeNode node = nodes.get(0);
            Object val = node.getValue();
            if(val != null) {
                try {
                    CountStatistic cs = (CountStatistic)val;
                    return cs.getCount();
                } catch (Exception e) {
                    //TODO: handle exception
                }             
            }
        }
View Full Code Here

Examples of org.glassfish.j2ee.statistics.CountStatistic

  StringBuffer sbuf = new StringBuffer();
  Statistic[] stats = getStatistics();
  int sz = stats.length;
  for (int i=0; i<sz; i++) {
      if (stats[i] instanceof CountStatistic) {
    CountStatistic stat = (CountStatistic) stats[i];
    sbuf.append(stat.getName()).append("=")
        .append(stat.getCount()).append("; ");
      } else if (stats[iinstanceof BoundedRangeStatistic) {
    BoundedRangeStatistic stat = (BoundedRangeStatistic) stats[i];
    sbuf.append(stat.getName()).append("=")
        .append(stat.getCurrent()).append("; ");
      } else {
    sbuf.append(stats[i].getName()).append("=?");
      }
  }
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.