View Javadoc

1   /*
2    * $Id$
3    *
4    * Copyright 2006 Commsen International
5    * 
6    * Licensed under the Common Public License, Version 1.0 (the "License");
7    * you may not use this file except in compliance with the License.
8    * You may obtain a copy of the License at
9    * 
10   *      http://www.opensource.org/licenses/cpl1.0.txt
11   * 
12   * THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, 
13   * EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS 
14   * OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
15   *
16   */
17  package com.commsen.stopwatch.jmx;
18  
19  import com.commsen.stopwatch.Report;
20  
21  public interface StopwatchManagerMBean {
22  	
23  	public void start ();
24  	
25  	public void stop ();
26  	
27  	public void reset ();
28  	
29  	public Report[] getReports (String group, String label);
30  	
31  	public long[] getLoadReports (String group, String label, int periodField, int numberOfPeriods);
32  
33  	public String getReportsAsXML (String group, String label);
34  	
35  	public String getReportsAsString (String group, String label);
36  	
37  	// attributes
38  	public boolean isDebug();
39  	public void setDebug(boolean debug);
40  	
41  	public String getEngine();
42  	public void setEngine(String engine);
43  
44  	public String getStorage();
45  	public void setStorage(String storage);
46  	
47  	public boolean isActive();
48  
49  	public boolean isChanged();
50  
51  }