Methods Summary |
---|
public javax.management.j2ee.statistics.CountStatistic | getExecutionTime()
executionStat.setCount(delegate.getExecutionTime());
return (CountStatistic) executionStat.modifiableView();
|
public javax.management.j2ee.statistics.TimeStatistic | getMethodStatistic()
return (TimeStatistic) methodStat.modifiableView();
|
public javax.management.j2ee.statistics.CountStatistic | getTotalNumErrors()
errorStat.setCount(delegate.getTotalNumErrors());
return (CountStatistic) errorStat.modifiableView();
|
public javax.management.j2ee.statistics.CountStatistic | getTotalNumSuccess()
successStat.setCount(delegate.getTotalNumSuccess());
return (CountStatistic) successStat.modifiableView();
|
private void | initialize()
super.initialize("com.sun.enterprise.admin.monitor.stats.EJBMethodStats");
executionStat = new MutableCountStatisticImpl(
new CountStatisticImpl("ExecutionTime", "Milliseconds" ));
errorStat = new MutableCountStatisticImpl(
new CountStatisticImpl("TotalNumErrors"));
long now = System.currentTimeMillis();
methodStat = new MutableTimeStatisticImpl(
new TimeStatisticImpl(0, 0, 0, 0,
"MethodStatistic", "", "", now, now));
successStat = new MutableCountStatisticImpl(
new CountStatisticImpl("TotalNumSuccess"));
delegate.setMutableTimeStatisticImpl(methodStat);
|
protected void | resetAllStats()
//Implementations must override this to reset stat values
executionStat.reset();
errorStat.reset();
synchronized (methodStat) {
methodStat.reset();
}
successStat.reset();
delegate.resetAllStats(monitorOn);
|