KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > stats > Monitorable


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.stats;
5
6 public interface Monitorable {
7   
8   public void enableStatsCollection(boolean enable);
9   
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 }
24
Popular Tags