01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.stats;
05:
06: public interface Monitorable {
07:
08: public void enableStatsCollection(boolean enable);
09:
10: public boolean isStatsCollectionEnabled();
11:
12: /*
13: * @param - frequency is the millis since the last call.
14: */
15: public Stats getStats(long frequency);
16:
17: /*
18: * @param - frequency is the millis since the last call.
19: */
20: public Stats getStatsAndReset(long frequency);
21:
22: public void resetStats();
23: }
|