Class MBeanManager
java.lang.Object
ecmwf.common.mbean.MBeanManager
-
Constructor Summary
ConstructorsConstructorDescriptionMBeanManager
(String URL, MBeanService service) Instantiates a new m bean manager. -
Method Summary
Modifier and TypeMethodDescriptionstatic MBeanInfo
addMBeanInfo
(MBeanInfo mBeanInfo, String description, MBeanAttributeInfo[] attributeInfo, MBeanOperationInfo[] operationInfo) Adds the MBean info.getAttribute
(String attributeName) Gets the attribute.getAttributes
(String[] attributeNames) Gets the attributes.Gets the MBean info.Invoke.void
register()
Register.void
setAttribute
(Attribute attribute) Sets the attribute.setAttributes
(AttributeList attributes) Sets the attributes.void
Unregister.
-
Constructor Details
-
MBeanManager
public MBeanManager(String URL, MBeanService service) throws InstanceNotFoundException, NotCompliantMBeanException, InstanceAlreadyExistsException, MBeanRegistrationException, MalformedObjectNameException Instantiates a new m bean manager.- Parameters:
URL
- the urlservice
- the service- Throws:
InstanceNotFoundException
- the instance not found exceptionNotCompliantMBeanException
- the not compliant m bean exceptionInstanceAlreadyExistsException
- the instance already exists exceptionMBeanRegistrationException
- the MBean registration exceptionMalformedObjectNameException
- the malformed object name exception
-
-
Method Details
-
unregister
public void unregister()Unregister. -
register
public void register()Register. -
getAttributes
Gets the attributes.- Specified by:
getAttributes
in interfaceDynamicMBean
-
setAttributes
Sets the attributes.- Specified by:
setAttributes
in interfaceDynamicMBean
-
setAttribute
public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException Sets the attribute.- Specified by:
setAttribute
in interfaceDynamicMBean
- Throws:
AttributeNotFoundException
InvalidAttributeValueException
MBeanException
ReflectionException
-
getMBeanInfo
Gets the MBean info.- Specified by:
getMBeanInfo
in interfaceDynamicMBean
-
addMBeanInfo
public static MBeanInfo addMBeanInfo(MBeanInfo mBeanInfo, String description, MBeanAttributeInfo[] attributeInfo, MBeanOperationInfo[] operationInfo) Adds the MBean info.- Parameters:
mBeanInfo
- the MBean infodescription
- the descriptionattributeInfo
- the attribute infooperationInfo
- the operation info- Returns:
- the MBean info
-
invoke
public Object invoke(String operationName, Object[] params, String[] signature) throws MBeanException, ReflectionException Invoke.- Specified by:
invoke
in interfaceDynamicMBean
- Throws:
MBeanException
ReflectionException
-
getAttribute
public Object getAttribute(String attributeName) throws AttributeNotFoundException, MBeanException, ReflectionException Gets the attribute.- Specified by:
getAttribute
in interfaceDynamicMBean
- Throws:
AttributeNotFoundException
MBeanException
ReflectionException
-