org.objectweb.kilim.tools.jmx
Class ComponentMBean
java.lang.Object
org.objectweb.kilim.tools.jmx.ComponentMBean
- public class ComponentMBean
- extends java.lang.Object
- Author:
- delpiano
To change this generated comment edit the template variable "typecomment":
Window>Preferences>Java>Templates.
To enable and disable the creation of type comments go to
Window>Preferences>Java>Code Generation.
Method Summary |
private void |
buildDynamicMBeanInfo()
Build the private dMBeanInfo field,
which represents the management interface exposed by the MBean;
that is, the set of attributes, constructors, operations and notifications
which are available for management. |
private static java.lang.String |
denormalize(java.lang.String nm)
|
boolean |
fork()
|
java.lang.Object |
getAttribute(java.lang.String name)
|
AttributeList |
getAttributes(java.lang.String[] names)
|
Component |
getComponent()
|
private java.util.Iterator |
getEditableProperties()
|
private Component |
getJMXDataContainer()
|
MBeanInfo |
getMBeanInfo()
|
private java.util.Iterator |
getMetaData(java.lang.String well_known_name)
|
private java.util.Iterator |
getMonitoredInterfaces()
|
private java.util.Iterator |
getMonitoredSubComponents()
|
private java.lang.Object |
getPortsNames()
|
private java.lang.Object |
getSlotsNames()
|
java.lang.String |
getValueOnInterface(java.lang.String name)
|
java.lang.Object |
invoke(java.lang.String method_name,
java.lang.Object[] params,
java.lang.String[] signature)
|
private static java.lang.String |
normalize(java.lang.String nm)
|
boolean |
plugAndUnplugComponent(boolean is_plug,
java.lang.String slot_nm,
ObjectName obj_nm)
|
boolean |
plugComponent(java.lang.String slot_nm,
ObjectName obj_nm)
|
void |
postDeregister()
|
void |
postRegister(java.lang.Boolean arg0)
|
void |
preDeregister()
|
ObjectName |
preRegister(MBeanServer srvr,
ObjectName obj_nm)
|
boolean |
rebindInterface(java.lang.String name)
|
void |
setAttribute(Attribute att)
|
AttributeList |
setAttributes(AttributeList attlist)
|
static void |
setDefaultMBeanServer(MBeanServer mbeanserver)
|
boolean |
unplugComponent(java.lang.String slot_nm,
ObjectName obj_nm)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JMX_META_DATA_NAME
private static final java.lang.String JMX_META_DATA_NAME
- See Also:
- Constant Field Values
mbeanserver
private static MBeanServer mbeanserver
dMBeanInfo
private MBeanInfo dMBeanInfo
component
private Component component
root_component_name
private java.lang.String root_component_name
root_domain_name
private java.lang.String root_domain_name
cached_ports_names
private java.lang.String cached_ports_names
cached_slots_names
private java.lang.String cached_slots_names
ComponentMBean
public ComponentMBean(java.lang.String template_name)
ComponentMBean
public ComponentMBean(Component component)
ComponentMBean
private ComponentMBean(Component component,
java.lang.String root_component_name,
java.lang.String root_domain_name)
setDefaultMBeanServer
public static void setDefaultMBeanServer(MBeanServer mbeanserver)
getAttribute
public java.lang.Object getAttribute(java.lang.String name)
throws AttributeNotFoundException,
MBeanException,
ReflectionException
- Throws:
AttributeNotFoundException
MBeanException
ReflectionException
- See Also:
javax.management.DynamicMBean#getAttribute(String)
getPortsNames
private java.lang.Object getPortsNames()
getSlotsNames
private java.lang.Object getSlotsNames()
getAttributes
public AttributeList getAttributes(java.lang.String[] names)
- See Also:
javax.management.DynamicMBean#getAttributes(String[])
getMBeanInfo
public MBeanInfo getMBeanInfo()
- See Also:
javax.management.DynamicMBean#getMBeanInfo()
invoke
public java.lang.Object invoke(java.lang.String method_name,
java.lang.Object[] params,
java.lang.String[] signature)
throws MBeanException,
ReflectionException
- Throws:
MBeanException
ReflectionException
- See Also:
javax.management.DynamicMBean#invoke(String, Object[], String[])
setAttribute
public void setAttribute(Attribute att)
throws AttributeNotFoundException,
InvalidAttributeValueException,
MBeanException,
ReflectionException
- Throws:
AttributeNotFoundException
InvalidAttributeValueException
MBeanException
ReflectionException
- See Also:
javax.management.DynamicMBean#setAttribute(Attribute)
setAttributes
public AttributeList setAttributes(AttributeList attlist)
- See Also:
javax.management.DynamicMBean#setAttributes(AttributeList)
getValueOnInterface
public java.lang.String getValueOnInterface(java.lang.String name)
rebindInterface
public boolean rebindInterface(java.lang.String name)
getComponent
public Component getComponent()
fork
public boolean fork()
plugComponent
public boolean plugComponent(java.lang.String slot_nm,
ObjectName obj_nm)
unplugComponent
public boolean unplugComponent(java.lang.String slot_nm,
ObjectName obj_nm)
plugAndUnplugComponent
public boolean plugAndUnplugComponent(boolean is_plug,
java.lang.String slot_nm,
ObjectName obj_nm)
buildDynamicMBeanInfo
private void buildDynamicMBeanInfo()
- Build the private dMBeanInfo field,
which represents the management interface exposed by the MBean;
that is, the set of attributes, constructors, operations and notifications
which are available for management.
A reference to the dMBeanInfo object is returned by the getMBeanInfo() method
of the DynamicMBean interface. Note that, once constructed, an MBeanInfo object is immutable.
normalize
private static final java.lang.String normalize(java.lang.String nm)
denormalize
private static final java.lang.String denormalize(java.lang.String nm)
getJMXDataContainer
private Component getJMXDataContainer()
getMetaData
private java.util.Iterator getMetaData(java.lang.String well_known_name)
getMonitoredInterfaces
private java.util.Iterator getMonitoredInterfaces()
getEditableProperties
private java.util.Iterator getEditableProperties()
getMonitoredSubComponents
private java.util.Iterator getMonitoredSubComponents()
postDeregister
public void postDeregister()
- See Also:
javax.management.MBeanRegistration#postDeregister()
postRegister
public void postRegister(java.lang.Boolean arg0)
- See Also:
javax.management.MBeanRegistration#postRegister(Boolean)
preDeregister
public void preDeregister()
throws java.lang.Exception
- Throws:
java.lang.Exception
- See Also:
javax.management.MBeanRegistration#preDeregister()
preRegister
public ObjectName preRegister(MBeanServer srvr,
ObjectName obj_nm)
throws java.lang.Exception
- Throws:
java.lang.Exception
- See Also:
javax.management.MBeanRegistration#preRegister(MBeanServer, ObjectName)