Monitorable.java :  » Net » Terracotta » com » tc » stats » Java Open Source

Java Open Source » Net » Terracotta 
Terracotta » com » tc » stats » Monitorable.java
/*
 * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice.  All rights reserved.
 */
package com.tc.stats;

public interface Monitorable {
  
  public void enableStatsCollection(boolean enable);
  
  public boolean isStatsCollectionEnabled();
  
  /*
   * @param - frequency is the millis since the last call.
   */
  public Stats getStats(long frequency);
  
  /*
   * @param - frequency is the millis since the last call.
   */
  public Stats getStatsAndReset(long frequency);
  
  public void resetStats();
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.