Fields Summary |
---|
private static final Logger | _logger |
private com.sun.enterprise.admin.monitor.stats.GenericStatsImpl | baseStatsImpl |
private MBeanServer | server |
private ObjectName | keepAliveName |
private com.sun.enterprise.admin.monitor.stats.MutableCountStatistic | countConnections |
private com.sun.enterprise.admin.monitor.stats.MutableCountStatistic | maxConnections |
private com.sun.enterprise.admin.monitor.stats.MutableCountStatistic | countHits |
private com.sun.enterprise.admin.monitor.stats.MutableCountStatistic | countFlushes |
private com.sun.enterprise.admin.monitor.stats.MutableCountStatistic | countRefusals |
private com.sun.enterprise.admin.monitor.stats.MutableCountStatistic | countTimeouts |
private com.sun.enterprise.admin.monitor.stats.MutableCountStatistic | secondsTimeouts |
Methods Summary |
---|
public javax.management.j2ee.statistics.CountStatistic | getCountConnections()Gets the number of connections in keep-alive mode.
countConnections.setCount(
StatsUtil.getAggregateStatistic(server, keepAliveName,
"countConnections"));
return (CountStatistic)countConnections.unmodifiableView();
|
public javax.management.j2ee.statistics.CountStatistic | getCountFlushes()Gets the number of keep-alive connections that were closed
countFlushes.setCount(
StatsUtil.getAggregateStatistic(server, keepAliveName,
"countFlushes"));
return (CountStatistic)countFlushes.unmodifiableView();
|
public javax.management.j2ee.statistics.CountStatistic | getCountHits()Gets the number of requests received by connections in keep-alive mode.
countHits.setCount(
StatsUtil.getAggregateStatistic(server, keepAliveName,
"countHits"));
return (CountStatistic)countHits.unmodifiableView();
|
public javax.management.j2ee.statistics.CountStatistic | getCountRefusals()Gets the number of keep-alive connections that were rejected.
countRefusals.setCount(
StatsUtil.getAggregateStatistic(server, keepAliveName,
"countRefusals"));
return (CountStatistic)countRefusals.unmodifiableView();
|
public javax.management.j2ee.statistics.CountStatistic | getCountTimeouts()Gets the number of keep-alive connections that timed out.
countTimeouts.setCount(
StatsUtil.getAggregateStatistic(server, keepAliveName,
"countTimeouts"));
return (CountStatistic)countTimeouts.unmodifiableView();
|
public javax.management.j2ee.statistics.CountStatistic | getMaxConnections()Gets the maximum number of concurrent connections in keep-alive mode.
maxConnections.setCount(
StatsUtil.getConstant(server, keepAliveName, "maxConnections"));
return (CountStatistic)maxConnections.unmodifiableView();
|
public javax.management.j2ee.statistics.CountStatistic | getSecondsTimeouts()Gets the number of seconds before a keep-alive connection that has
been idle times out and is closed.
secondsTimeouts.setCount(
StatsUtil.getConstant(server, keepAliveName, "secondsTimeouts"));
return (CountStatistic)secondsTimeouts.unmodifiableView();
|
public javax.management.j2ee.statistics.Statistic | getStatistic(java.lang.String name)Queries for a statistic with the given name.
return baseStatsImpl.getStatistic(name);
|
public java.lang.String[] | getStatisticNames()Gets array of all statistic names exposed by this implementation of
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()
CountStatistic c = null;
c = new CountStatisticImpl("CountConnections");
countConnections = new MutableCountStatisticImpl(c);
c = new CountStatisticImpl("MaxConnections");
maxConnections = new MutableCountStatisticImpl(c);
c = new CountStatisticImpl("CountHits");
countHits = new MutableCountStatisticImpl(c);
c = new CountStatisticImpl("CountFlushes");
countFlushes = new MutableCountStatisticImpl(c);
c = new CountStatisticImpl("CountRefusals");
countRefusals = new MutableCountStatisticImpl(c);
c = new CountStatisticImpl("CountTimeouts");
countTimeouts = new MutableCountStatisticImpl(c);
c = new CountStatisticImpl("SecondsTimeouts");
secondsTimeouts = new MutableCountStatisticImpl(c);
|