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 MBeanInfoaddMBeanInfo(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.voidregister()Register.voidsetAttribute(Attribute attribute) Sets the attribute.setAttributes(AttributeList attributes) Sets the attributes.voidUnregister.
-
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:
getAttributesin interfaceDynamicMBean
-
setAttributes
Sets the attributes.- Specified by:
setAttributesin interfaceDynamicMBean
-
setAttribute
public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException Sets the attribute.- Specified by:
setAttributein interfaceDynamicMBean- Throws:
AttributeNotFoundExceptionInvalidAttributeValueExceptionMBeanExceptionReflectionException
-
getMBeanInfo
Gets the MBean info.- Specified by:
getMBeanInfoin 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:
invokein interfaceDynamicMBean- Throws:
MBeanExceptionReflectionException
-
getAttribute
public Object getAttribute(String attributeName) throws AttributeNotFoundException, MBeanException, ReflectionException Gets the attribute.- Specified by:
getAttributein interfaceDynamicMBean- Throws:
AttributeNotFoundExceptionMBeanExceptionReflectionException
-