|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Management
Simple interface used as a wrapper to a JMX management implementation. Below is an example of such implementation based on Apache Commons Modeler.
public class CommonsModelerManagement implements Management{
public void registerComponent(Object bean, ObjectName oname, String type)
throws Exception{
Registry.getRegistry().registerComponent(bean,oname,type);
}
public void unregisterComponent(ObjectName oname) throws Exception{
Registry.getRegistry().
unregisterComponent(oname);
}
}
Method Summary | |
---|---|
void |
registerComponent(Object bean,
ObjectName oname,
String type)
Register a bean by creating a modeler mbean and adding it to the MBeanServer . |
void |
unregisterComponent(ObjectName oname)
Unregister a component. |
Method Detail |
---|
void registerComponent(Object bean, ObjectName oname, String type) throws Exception
MBeanServer
.
bean
- The Object you want to register. Most of the time you
should register at least the SelectorThread
.oname
- The ObjectName
you want to use.type
- The type, or null if not specified.
Exception
void unregisterComponent(ObjectName oname) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |