Examples of RunningStatistics


Examples of net.myrrix.common.stats.RunningStatistics

      out.write("<tr>");
      out.write("<td style=\"font-family:Courier,monospace;text-align:left\">");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${entry.key}", java.lang.String.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null, false));
      out.write("</td>");

        RunningStatistics allTimeNanosec = entry.getValue().getAllTimeNanosec();
        pageContext.setAttribute("averageMicroSec", (long) (allTimeNanosec.getAverage() / 1000.0));
        pageContext.setAttribute("maxMicroSec", (long) (allTimeNanosec.getMax() / 1000.0));
        RunningStatisticsPerTime lastHourNanosec = entry.getValue().getLastHourNanosec();
        pageContext.setAttribute("averageLastHourMicroSec", (long) (lastHourNanosec.getMean() / 1000.0));
        pageContext.setAttribute("maxLastHourMicroSec", (long) (lastHourNanosec.getMax() / 1000.0));
        pageContext.setAttribute("clientErrors", entry.getValue().getNumClientErrors());
        pageContext.setAttribute("serverErrors", entry.getValue().getNumServerErrors());
View Full Code Here

Examples of net.myrrix.common.stats.RunningStatistics

  private final RunningStatisticsPerTime lastHourNanosec;
  private final AtomicInteger numClientErrors;
  private final AtomicInteger numServerErrors;

  public ServletStats() {
    allTimeNanosec = new RunningStatistics();
    lastHourNanosec = new RunningStatisticsPerTime(TimeUnit.HOURS);
    numClientErrors = new AtomicInteger();
    numServerErrors = new AtomicInteger();
  }
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.