Class C3P0MBeanService
java.lang.Object
ecmwf.common.database.C3P0MBeanService
-
Constructor Summary
ConstructorsConstructorDescriptionC3P0MBeanService(String name) Constructor of C3P0MBeanService for C3P0 connection pool. -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(String attributeName) Gets the attribute.Gets the MBean info.Invoke.booleansetAttribute(String name, Object value) Sets the attribute.
-
Constructor Details
-
C3P0MBeanService
Constructor of C3P0MBeanService for C3P0 connection pool.- Parameters:
name- the name- Throws:
NullPointerException- the null pointer exceptionNullPointerException- the exceptionException
-
-
Method Details
-
getMBeanInfo
Gets the MBean info. Gets the MBean info.- Specified by:
getMBeanInfoin interfaceMBeanService- Returns:
- the MBean info
-
setAttribute
public boolean setAttribute(String name, Object value) throws InvalidAttributeValueException, MBeanException Sets the attribute. Sets the attribute.- Specified by:
setAttributein interfaceMBeanService- Parameters:
name- the namevalue- the value- Returns:
- true, if successful
- Throws:
InvalidAttributeValueException- the invalid attribute value exceptionMBeanException- the MBean exception
-
invoke
public Object invoke(String operationName, Object[] params, String[] signature) throws MBeanException Invoke. Invoke.- Specified by:
invokein interfaceMBeanService- Parameters:
operationName- the operation nameparams- the paramssignature- the signature- Returns:
- the object
- Throws:
MBeanException- the MBean exception
-
getAttribute
Gets the attribute. Gets the attribute.- Specified by:
getAttributein interfaceMBeanService- Parameters:
attributeName- the attribute name- Returns:
- the attribute
- Throws:
AttributeNotFoundException- the attribute not found exceptionMBeanException- the MBean exception
-