01: /*
02: * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
03: * PROPRIETARY/CONFIDENTIAL. Use of this product is subject to license terms.
04: */
05: package com.sun.portal.monitoring.statistics;
06:
07: import javax.management.j2ee.statistics.CountStatistic;
08:
09: public class CountStatisticImpl extends StatisticImpl implements
10: CountStatistic {
11: public long getCount() {
12: return count;
13: }
14:
15: public void setCount(long count) {
16: this .count = count;
17: setLastSampleTime(System.currentTimeMillis());
18: }
19:
20: protected long count;
21:
22: public void reset() {
23: count = 0;
24: super.reset();
25: }
26: }
|