Package com.flaptor.util.Statistics

Examples of com.flaptor.util.Statistics.EventStats


      }
    } else if (name.equals("responseTimes")
          || name.equals("cacheHit")
          || name.equals("cacheMiss")) {
      Triad<EventStats,EventStats,EventStats> stats = (Triad<EventStats,EventStats,EventStats>)value;
      EventStats accum = stats.first();
      EventStats curr = stats.second();
      EventStats last = stats.third();
      addStats(output,"Current",curr);
      addStats(output,"Last",last);
      addStats(output,"Accumulated",accum);
    } else {
      output.append((new DefaultPropertyFormatter()).format(node, name,value));
View Full Code Here


          remarks.add("No statistics to check.");
          sanity = Sanity.BAD;
        } else {
          for (String eventName : stats.getEvents()) {
            if (eventName.startsWith("averageTimes_")) {
              EventStats es = stats.getLastPeriodStats(eventName);
              if (es.numErrors > 0L) {
                remarks.add("Errors reported for event: " + eventName + '.');
                sanity = Sanity.BAD;
              }
            }
View Full Code Here

TOP

Related Classes of com.flaptor.util.Statistics.EventStats

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.