public class InstallerConfiguration extends Object implements DynamicMBean
| Constructor and Description |
|---|
InstallerConfiguration(MBeanInfo mbeanInfo,
ObjectName mbeanName)
Creates a new InstallerConfiguration MBean.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getAttribute(String attribute)
Obtain the value of a specific attribute of the Dynamic MBean.
|
int |
getAttributeCount()
Returns the total number of attributes that have been set on the
configuration MBean.
|
AttributeList |
getAttributeList()
Return a list of all attributes that have been set on the config MBean.
|
AttributeList |
getAttributes(String[] attributes)
Get the values of several attributes of the Dynamic MBean.
|
MBeanInfo |
getMBeanInfo()
Provides the exposed attributes and actions of the Dynamic MBean using
an MBeanInfo object.
|
ObjectName |
getObjectName()
Returns the ObjectName of the facade InstallerConfiguration MBean
registered in the DAS.
|
Object |
invoke(String actionName,
Object[] params,
String[] signature)
Allows an action to be invoked on the Dynamic MBean.
|
boolean |
isReadOnly()
Indicates whether the configuration MBean is in read-only mode.
|
void |
setAttribute(Attribute attribute)
Set the value of a specific attribute of the Dynamic MBean.
|
AttributeList |
setAttributes(AttributeList attributes)
Sets the values of several attributes of the Dynamic MBean.
|
void |
setReadOnly()
Marks the configuration MBean as read only.
|
public InstallerConfiguration(MBeanInfo mbeanInfo, ObjectName mbeanName)
mbeanInfo - metadata returned by the 'real' MBean in the
target instance.mbeanName - name of this MBean registered in the DAS.public ObjectName getObjectName()
public AttributeList getAttributeList()
public int getAttributeCount()
public boolean isReadOnly()
public void setReadOnly()
public Object getAttribute(String attribute) throws AttributeNotFoundException, MBeanException, ReflectionException
getAttribute in interface DynamicMBeanattribute - The name of the attribute to be retrievedAttributeNotFoundExceptionMBeanException - Wraps a java.lang.Exception
thrown by the MBean's getter.ReflectionException - Wraps a java.lang.Exception
thrown while trying to invoke the getter.setAttribute(javax.management.Attribute)public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException
setAttribute in interface DynamicMBeanattribute - The identification of the attribute to
be set and the value it is to be set to.AttributeNotFoundExceptionInvalidAttributeValueExceptionMBeanException - Wraps a java.lang.Exception
thrown by the MBean's setter.ReflectionException - Wraps a java.lang.Exception
thrown while trying to invoke the MBean's setter.getAttribute(java.lang.String)public Object invoke(String actionName, Object[] params, String[] signature) throws MBeanException, ReflectionException
invoke in interface DynamicMBeanactionName - The name of the action to be invoked.params - An array containing the parameters to be set when the
action is invoked.signature - An array containing the signature of the action. The
class objects will be loaded through the same class loader as the
one used for loading the MBean on which the action is invoked.MBeanException - Wraps a java.lang.Exception thrown
by the MBean's invoked method.ReflectionException - Wraps a java.lang.Exception
thrown while trying to invoke the methodpublic AttributeList setAttributes(AttributeList attributes)
setAttributes in interface DynamicMBeanattributes - A list of attributes: The identification of the
attributes to be set and the values they are to be set to.getAttributes(java.lang.String[])public MBeanInfo getMBeanInfo()
getMBeanInfo in interface DynamicMBeanMBeanInfo allowing all attributes
and actions exposed by this Dynamic MBean to be retrieved.public AttributeList getAttributes(String[] attributes)
getAttributes in interface DynamicMBeanattributes - A list of the attributes to be retrieved.setAttributes(javax.management.AttributeList)Copyright © 2011-2016 OpenESB Community. All Rights Reserved.