Methods Summary |
---|
protected void | appendStats(java.lang.StringBuffer sbuf)
super.appendStats(sbuf);
sbuf.append("CheckpointCount: ").append(checkpointCountVal)
.append("; ")
.append("CheckpointSuccessCount: ").append(checkpointSuccessCountVal)
.append("; ")
.append("CheckpointErrorCount: ").append(checkpointErrorCountVal)
.append("; ");
appendTimeStatistic(sbuf, "CheckpointTime", checkpointTime);
|
public javax.management.j2ee.statistics.CountStatistic | getCheckpointCount()Returns the total number of sessions checkpointed into the store
synchronized (checkpointCountLock) {
checkpointCount.setCount(checkpointCountVal);
return (CountStatistic) checkpointCount.unmodifiableView();
}
|
public javax.management.j2ee.statistics.CountStatistic | getCheckpointErrorCount()Returns the total number of sessions that couldn't be Checkpointed into the store
synchronized (checkpointCountLock) {
checkpointErrorCount.setCount(checkpointErrorCountVal);
return (CountStatistic) checkpointErrorCount.unmodifiableView();
}
|
public javax.management.j2ee.statistics.CountStatistic | getCheckpointSuccessCount()Returns the total number of sessions successfully Checkpointed into the store
synchronized (checkpointCountLock) {
checkpointSuccessCount.setCount(checkpointSuccessCountVal);
return (CountStatistic) checkpointSuccessCount.unmodifiableView();
}
|
public com.sun.enterprise.admin.monitor.stats.AverageRangeStatistic | getCheckpointTime()Returns the time spent on passivating beans to the store including total, min, max
synchronized (checkpointTimeLock) {
return (AverageRangeStatistic) checkpointTime.unmodifiableView();
}
|
public com.sun.enterprise.admin.monitor.stats.AverageRangeStatistic | getCheckpointedBeanSize()Returns the number of bytes checkpointed
synchronized (checkpointTimeLock) {
return (AverageRangeStatistic) checkpointSize.unmodifiableView();
}
|
public void | incrementCheckpointCount(boolean success)
synchronized (checkpointCountLock) {
checkpointCountVal++;
if (success) {
checkpointSuccessCountVal++;
} else {
checkpointErrorCountVal++;
}
}
|
protected void | initialize()
super.initialize();
synchronized (checkpointCountLock) {
checkpointCount = new MutableCountStatisticImpl(
new CountStatisticImpl("CheckpointCount"));
checkpointSuccessCount = new MutableCountStatisticImpl(
new CountStatisticImpl("CheckpointSuccessCount"));
checkpointErrorCount = new MutableCountStatisticImpl(
new CountStatisticImpl("CheckpointErrorCount"));
}
long now = System.currentTimeMillis();
synchronized (checkpointTimeLock) {
checkpointTime = new MutableAverageRangeStatisticImpl(
new BoundedRangeStatisticImpl(0, 0, 0,
0, 0, "CheckpointTime",
"millis", "Time spent on checkpointing", 0, 0)
);
}
synchronized (checkpointSizeLock) {
checkpointSize = new MutableAverageRangeStatisticImpl(
new BoundedRangeStatisticImpl(0, 0, 0,
0, 0, "CheckpointSize",
"millis", "Number of bytes checkpointed", 0, 0)
);
}
|
public void | setCheckpointSize(long val)
synchronized (checkpointSizeLock) {
checkpointSize.setCount(val);
}
|
public void | setCheckpointTime(long val)
synchronized (checkpointTimeLock) {
checkpointTime.setCount(val);
}
|