private RangeStatisticImpl activeRequestCount;
private TimeStatisticImpl requestDuration;
private boolean statsOn=false;
public JettyWebContainerStatsImpl() {
totalConnectionCount = new CountStatisticImpl("Total Connections", StatisticImpl.UNIT_COUNT,
"The total number of connections since last reset");
openConnectionCount = new RangeStatisticImpl("Open Connections", StatisticImpl.UNIT_COUNT,
"The number of connections open at present");
connectionRequestCount = new RangeStatisticImpl("Connection Request Count", StatisticImpl.UNIT_COUNT,
"The number of requests handled by a particular connection");
connectionDuration = new TimeStatisticImpl("Connection Duration", StatisticImpl.UNIT_TIME_MILLISECOND,
"The legnth of time that individual connections have been open");
totalErrorCount = new CountStatisticImpl("Error Count", StatisticImpl.UNIT_COUNT,
"The number of reponses that were errors since statistics gathering started");
totalRequestCount = new CountStatisticImpl("Request Count", StatisticImpl.UNIT_COUNT,
"The number of requests that were handled since statistics gathering started");
activeRequestCount = new RangeStatisticImpl("Active Request Count", StatisticImpl.UNIT_COUNT,
"The number of requests being processed concurrently");
requestDuration = new TimeStatisticImpl("Request Duration", StatisticImpl.UNIT_TIME_MILLISECOND,
"The length of time that it's taken to handle individual requests");