01: package org.jgroups.jmx;
02:
03: import org.jgroups.stack.ProtocolObserver;
04:
05: import java.util.Map;
06: import java.util.Properties;
07:
08: /**
09: * @author Bela Ban
10: * @version $Id: ProtocolMBean.java,v 1.7.10.1 2007/04/27 08:03:50 belaban Exp $
11: */
12: public interface ProtocolMBean {
13: String getName();
14:
15: String getPropertiesAsString();
16:
17: void setProperties(Properties p);
18:
19: boolean getStatsEnabled();
20:
21: void setStatsEnabled(boolean flag);
22:
23: void resetStats();
24:
25: String printStats();
26:
27: Map dumpStats();
28:
29: boolean getUpThread();
30:
31: boolean getDownThread();
32:
33: void setObserver(ProtocolObserver observer);
34:
35: void create() throws Exception;
36:
37: void start() throws Exception;
38:
39: void stop();
40:
41: void destroy();
42:
43: }
|