Package org.glassfish.j2ee.statistics

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


  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

  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

      s.append(timeStatisticSpecificString());
    return ( s.toString() );
  }
  private String countStatisticSpecificString() {
    final StringBuffer s = new StringBuffer();
    final CountStatistic cs = (CountStatistic)stc;
    return ( s.append(cs.getCount()).toString() );
  }
View Full Code Here

TOP

Related Classes of org.glassfish.j2ee.statistics.CountStatistic

Copyright © 2018 www.massapicom. 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.