KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > celtix > management > InstrumentationManager


1 package org.objectweb.celtix.management;
2
3 import java.util.List JavaDoc;
4
5 import javax.management.MBeanServer JavaDoc;
6
7 /**
8  * InstrumentationManager interface for the instrumentations query, register
9  * and unregister
10  */

11 public interface InstrumentationManager {
12     
13     /**
14      * register the instrumentation instance to the instrumentation manager
15      */

16     void register(Instrumentation instrumentation);
17
18     /**
19      * unregister the instrumentation instance from the instrumentation manager
20      */

21     void unregister(Object JavaDoc component);
22
23     /**
24      * get all instrumentation from the instrumentation manager
25      * @retrun the instrumentation list
26      */

27     List JavaDoc<Instrumentation> getAllInstrumentation();
28
29     /**
30      * provide a clean up method for instrumentation manager to stop
31      */

32     void shutdown();
33     
34     /**
35      * get the MBeanServer which will host the celtix runtime component MBeans
36      * NOTE: if the configuration is not set the JMXEnabled to be true, this method
37      * will return null
38      * @return the MBeanServer
39      */

40     MBeanServer JavaDoc getMBeanServer();
41
42 }
43
Popular Tags