|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mysql.management.jmx.SimpleMysqldDynamicMBean
public class SimpleMysqldDynamicMBean
MySQL DynamicMBean
| Field Summary | |
|---|---|
static java.lang.String |
AUTOSTART_ATTR
|
static java.lang.String |
START_METHOD
|
static java.lang.String |
STOP_METHOD
|
| Constructor Summary | |
|---|---|
|
SimpleMysqldDynamicMBean()
Directs output generated by MySQL to Standard Out and Standard Error. |
protected |
SimpleMysqldDynamicMBean(MysqldFactory mysqldFactory)
This constructor is useful for tests which need to have "stub" or "mock" implementations of the underlying MySQL resource. |
| Method Summary | |
|---|---|
protected void |
clearMBeanInfo()
|
java.lang.Object |
getAttribute(java.lang.String attributeName)
|
javax.management.AttributeList |
getAttributes(java.lang.String[] attributeNames)
Given an array of command line option names, an "AttributeList" is created containing those option names and the values for each. |
javax.management.MBeanInfo |
getMBeanInfo()
Returns an MBeanInfo object knowing the class name, what attributes are available, the constructor information, and either the start or stop method information. |
protected java.util.List |
getMBeanOperationInfoList()
|
java.lang.Object |
invoke(java.lang.String methodName,
java.lang.Object[] args,
java.lang.String[] types)
Allows the JMX Agent to pass along calls of "startMysqld" or "startMysqld" with no args of any type |
protected javax.management.MBeanOperationInfo |
newVoidMBeanOperation(java.lang.String method,
java.lang.String description)
|
void |
setAttribute(javax.management.Attribute attribute)
Allows the JMX Agent to set a command line option to be used when MySQL is launched. |
javax.management.AttributeList |
setAttributes(javax.management.AttributeList attributes)
Allows the JMX Agent to set a number of command line options at once. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String AUTOSTART_ATTR
public static final java.lang.String START_METHOD
public static final java.lang.String STOP_METHOD
| Constructor Detail |
|---|
public SimpleMysqldDynamicMBean()
protected SimpleMysqldDynamicMBean(MysqldFactory mysqldFactory)
| Method Detail |
|---|
protected java.util.List getMBeanOperationInfoList()
public java.lang.Object getAttribute(java.lang.String attributeName)
throws javax.management.AttributeNotFoundException
getAttribute in interface javax.management.DynamicMBeanattributeName - represents a command line argument to a MySQL database.
javax.management.AttributeNotFoundExceptionpublic javax.management.AttributeList getAttributes(java.lang.String[] attributeNames)
getAttributes in interface javax.management.DynamicMBeanpublic javax.management.MBeanInfo getMBeanInfo()
getMBeanInfo in interface javax.management.DynamicMBean
public java.lang.Object invoke(java.lang.String methodName,
java.lang.Object[] args,
java.lang.String[] types)
throws javax.management.ReflectionException
invoke in interface javax.management.DynamicMBeanjavax.management.ReflectionExceptionprotected void clearMBeanInfo()
public void setAttribute(javax.management.Attribute attribute)
throws javax.management.AttributeNotFoundException
setAttribute in interface javax.management.DynamicMBeanjavax.management.AttributeNotFoundException - ReflectionExceptionpublic javax.management.AttributeList setAttributes(javax.management.AttributeList attributes)
setAttributes in interface javax.management.DynamicMBean
protected javax.management.MBeanOperationInfo newVoidMBeanOperation(java.lang.String method,
java.lang.String description)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||