Fields Summary |
---|
private static final Logger | _logger |
private com.sun.enterprise.admin.monitor.stats.GenericStatsImpl | baseStatsImpl |
private com.sun.enterprise.admin.monitor.stats.MutableCountStatistic | maxTimeMillis |
private com.sun.enterprise.admin.monitor.stats.MutableCountStatistic | processingTimeMillis |
private javax.management.j2ee.statistics.TimeStatistic | serviceTimeMillis |
private com.sun.enterprise.admin.monitor.stats.MutableCountStatistic | requestCount |
private com.sun.enterprise.admin.monitor.stats.MutableCountStatistic | errorCount |
private com.sun.enterprise.web.monitor.PwcServletStats | pwcServletStats |
Methods Summary |
---|
public javax.management.j2ee.statistics.CountStatistic | getErrorCount()The errorCount represents the number of cases where the response
code was >= 400
errorCount.setCount(pwcServletStats.getErrorCount());
return (CountStatistic)errorCount.unmodifiableView();
|
public javax.management.j2ee.statistics.CountStatistic | getMaxTime()The maximum processing time of a servlet request
maxTimeMillis.setCount(pwcServletStats.getMaxTimeMillis());
return (CountStatistic)maxTimeMillis.unmodifiableView();
|
public javax.management.j2ee.statistics.CountStatistic | getProcessingTime()Gets the total execution time of the servlet's service method.
processingTimeMillis.setCount(pwcServletStats.getProcessingTimeMillis());
return (CountStatistic)processingTimeMillis.unmodifiableView();
|
public javax.management.j2ee.statistics.CountStatistic | getRequestCount()Number of requests processed by this servlet.
requestCount.setCount(pwcServletStats.getRequestCount());
return (CountStatistic)requestCount.unmodifiableView();
|
public javax.management.j2ee.statistics.TimeStatistic | getServiceTime()Gets the execution time of the servlet's service method as a
TimeStatistic.
return serviceTimeMillis;
|
public javax.management.j2ee.statistics.Statistic | getStatistic(java.lang.String str)queries for a Statistic by name.
return baseStatsImpl.getStatistic(str);
|
public java.lang.String[] | getStatisticNames()returns an array of names of all the Statistics, that can be
retrieved from this implementation of Stats
return baseStatsImpl.getStatisticNames();
|
public javax.management.j2ee.statistics.Statistic[] | getStatistics()This method can be used to retrieve all the Statistics, exposed
by this implementation of Stats
return baseStatsImpl.getStatistics();
|
private void | initializeStatistics()
// Initialize the MutableCountStatistic for ErrorCount
CountStatistic c = new CountStatisticImpl("ErrorCount");
errorCount = new MutableCountStatisticImpl(c);
// Initialize the MutableCountStatistic for MaxTime
c = new CountStatisticImpl("MaxTime", "milliseconds");
maxTimeMillis = new MutableCountStatisticImpl(c);
// Initialize the MutableCountStatistic for ProcessingTime
c = new CountStatisticImpl("ProcessingTime", "milliseconds");
processingTimeMillis = new MutableCountStatisticImpl(c);
// Initialize the MutableCountStatistic for RequestCount
c = new CountStatisticImpl("RequestCount");
requestCount = new MutableCountStatisticImpl(c);
// Initialize the MutableTimeStatistic for ServiceTime
serviceTimeMillis = new ServletTimeStatisticImpl("ServiceTime",
"milliseconds",
pwcServletStats);
|