|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.jasmine.adapter.jmx.pool.outbound.JMXConnectionImpl
public class JMXConnectionImpl
JMX Connection is defined here.
| Nested Class Summary | |
|---|---|
static class |
JMXConnectionImpl.States
Enum of the different states for a connection. |
| Constructor Summary | |
|---|---|
JMXConnectionImpl(ManagedConnectionImpl mci,
org.ow2.jasmine.adapter.jmx.pool.api.JMXConnectionParam params)
Create a new connection with the given parameters. |
|
| Method Summary | |
|---|---|
void |
addNotificationListener(javax.management.ObjectName name,
javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
java.lang.Object handback)
Adds a listener to a registered MBean. |
void |
addNotificationListener(javax.management.ObjectName name,
javax.management.ObjectName listener,
javax.management.NotificationFilter filter,
java.lang.Object handback)
Adds a listener to a registered MBean. |
void |
close()
Close the JMX connection physically. |
void |
connect()
Connects to the JMX URL. |
javax.resource.cci.Interaction |
createInteraction()
Not implemented. |
javax.management.ObjectInstance |
createMBean(java.lang.String className,
javax.management.ObjectName name)
Instantiates and registers an MBean in the MBean server. |
javax.management.ObjectInstance |
createMBean(java.lang.String className,
javax.management.ObjectName name,
java.lang.Object[] params,
java.lang.String[] signature)
Instantiates and registers an MBean in the MBean server. |
javax.management.ObjectInstance |
createMBean(java.lang.String className,
javax.management.ObjectName name,
javax.management.ObjectName loaderName)
Instantiates and registers an MBean in the MBean server. |
javax.management.ObjectInstance |
createMBean(java.lang.String className,
javax.management.ObjectName name,
javax.management.ObjectName loaderName,
java.lang.Object[] params,
java.lang.String[] signature)
Instantiates and registers an MBean in the MBean server. |
java.lang.Object |
getAttribute(javax.management.ObjectName name,
java.lang.String attribute)
Gets the value of a specific attribute of a named MBean. |
javax.management.AttributeList |
getAttributes(javax.management.ObjectName name,
java.lang.String[] attributes)
Enables the values of several attributes of a named MBean. |
java.lang.String |
getDefaultDomain()
Returns the default domain used for naming the MBean. |
java.lang.String[] |
getDomains()
Returns the list of domains in which any MBean is currently registered. |
javax.resource.cci.LocalTransaction |
getLocalTransaction()
Not implemented. |
java.lang.Integer |
getMBeanCount()
Returns the number of MBeans registered in the MBean server. |
javax.management.MBeanInfo |
getMBeanInfo(javax.management.ObjectName name)
This method discovers the attributes and operations that an MBean exposes for management. |
javax.resource.cci.ConnectionMetaData |
getMetaData()
Not implemented. |
javax.management.ObjectInstance |
getObjectInstance(javax.management.ObjectName name)
Gets the ObjectInstance for a given MBean registered with the MBean server. |
org.ow2.jasmine.adapter.jmx.pool.api.JMXConnectionParam |
getParam()
Get the parameters of the JMX Connection. |
javax.resource.cci.ResultSetInfo |
getResultSetInfo()
Not implemented. |
JMXConnectionImpl.States |
getState()
Get the state of the connection. |
java.lang.Object |
invoke(javax.management.ObjectName name,
java.lang.String operationName,
java.lang.Object[] params,
java.lang.String[] signature)
Invokes an operation on an MBean. |
boolean |
isInstanceOf(javax.management.ObjectName name,
java.lang.String className)
Returns true if the MBean specified is an instance of the specified class, false otherwise. |
boolean |
isRegistered(javax.management.ObjectName name)
Checks whether an MBean, identified by its object name, is already registered with the MBean server. |
java.util.Set<javax.management.ObjectInstance> |
queryMBeans(javax.management.ObjectName name,
javax.management.QueryExp query)
Gets MBeans controlled by the MBean server. |
java.util.Set<javax.management.ObjectName> |
queryNames(javax.management.ObjectName name,
javax.management.QueryExp query)
Gets the names of MBeans controlled by the MBean server. |
void |
release()
Release the JMX connection. |
void |
removeNotificationListener(javax.management.ObjectName name,
javax.management.NotificationListener listener)
Removes a listener from a registered MBean. |
void |
removeNotificationListener(javax.management.ObjectName name,
javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
java.lang.Object handback)
Removes a listener from a registered MBean. |
void |
removeNotificationListener(javax.management.ObjectName name,
javax.management.ObjectName listener)
Removes a listener from a registered MBean. |
void |
removeNotificationListener(javax.management.ObjectName name,
javax.management.ObjectName listener,
javax.management.NotificationFilter filter,
java.lang.Object handback)
Removes a listener from a registered MBean. |
void |
setAttribute(javax.management.ObjectName name,
javax.management.Attribute attribute)
Sets the value of a specific attribute of a named MBean. |
javax.management.AttributeList |
setAttributes(javax.management.ObjectName name,
javax.management.AttributeList attributes)
Sets the values of several attributes of a named MBean. |
void |
setMBeanServerConnection(javax.management.MBeanServerConnection cnx)
Set MBeanServerConnection to use in the JMX connector. |
void |
setState(JMXConnectionImpl.States s)
Set the state of the connection. |
void |
unregisterMBean(javax.management.ObjectName name)
Unregisters an MBean from the MBean server. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JMXConnectionImpl(ManagedConnectionImpl mci,
org.ow2.jasmine.adapter.jmx.pool.api.JMXConnectionParam params)
mci - the manager of the connection.params - parameters to establish the JMX connection.| Method Detail |
|---|
public void release()
release in interface org.ow2.jasmine.adapter.jmx.pool.api.IJMXConnectionServerpublic JMXConnectionImpl.States getState()
public void setState(JMXConnectionImpl.States s)
s - the state to set for this connection
public void close()
throws javax.resource.ResourceException
close in interface javax.resource.cci.Connectionjavax.resource.ResourceException - generic exception if operation fails due to an
error condition.Connection.close()
public javax.resource.cci.Interaction createInteraction()
throws javax.resource.ResourceException
createInteraction in interface javax.resource.cci.Connectionjavax.resource.ResourceException - generic exception if operation fails due to an
error condition.Connection.createInteraction()
public javax.resource.cci.LocalTransaction getLocalTransaction()
throws javax.resource.ResourceException
getLocalTransaction in interface javax.resource.cci.Connectionjavax.resource.ResourceException - generic exception if operation fails due to an
error condition.Connection.getLocalTransaction()
public javax.resource.cci.ConnectionMetaData getMetaData()
throws javax.resource.ResourceException
getMetaData in interface javax.resource.cci.Connectionjavax.resource.ResourceException - generic exception if operation fails due to an
error condition.Connection.getMetaData()
public javax.resource.cci.ResultSetInfo getResultSetInfo()
throws javax.resource.ResourceException
getResultSetInfo in interface javax.resource.cci.Connectionjavax.resource.ResourceException - generic exception if operation fails due to an
error condition.Connection.getResultSetInfo()
public void addNotificationListener(javax.management.ObjectName name,
javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
java.lang.Object handback)
throws javax.management.InstanceNotFoundException,
java.io.IOException
addNotificationListener in interface javax.management.MBeanServerConnectionname - The name of the MBean on which the listener should be added.listener - The listener object which will handle the notifications
emitted by the registered MBean.filter - The filter object. If filter is null, no filtering will be
performed before handling notifications.handback - The context to be sent to the listener when a
notification is emitted.
javax.management.InstanceNotFoundException - The MBean name provided does not match
any of the registered MBeans.
java.io.IOException - A communication problem occurred when talking to the
MBean server.MBeanServerConnection.addNotificationListener(javax.management.ObjectName,
javax.management.NotificationListener,
javax.management.NotificationFilter, java.lang.Object)
public void addNotificationListener(javax.management.ObjectName name,
javax.management.ObjectName listener,
javax.management.NotificationFilter filter,
java.lang.Object handback)
throws javax.management.InstanceNotFoundException,
java.io.IOException
addNotificationListener in interface javax.management.MBeanServerConnectionname - The name of the MBean on which the listener should be added.listener - The object name of the listener which will handle the
notifications emitted by the registered MBean.filter - The filter object. If filter is null, no filtering will be
performed before handling notifications.handback - The context to be sent to the listener when a
notification is emitted.
javax.management.InstanceNotFoundException - The MBean name of the notification
listener or of the notification broadcaster does not match
any of the registered MBeans.
java.io.IOException - A communication problem occurred when talking to the
MBean server.MBeanServerConnection.addNotificationListener(javax.management.ObjectName,
javax.management.ObjectName, javax.management.NotificationFilter,
java.lang.Object)
public javax.management.ObjectInstance createMBean(java.lang.String className,
javax.management.ObjectName name)
throws javax.management.ReflectionException,
javax.management.InstanceAlreadyExistsException,
javax.management.MBeanRegistrationException,
javax.management.MBeanException,
javax.management.NotCompliantMBeanException,
java.io.IOException
createMBean in interface javax.management.MBeanServerConnectionclassName - The class name of the MBean to be instantiated.name - The object name of the MBean. May be null.
javax.management.ReflectionException - Wraps a java.lang.ClassNotFoundException or a
java.lang.Exception that occurred when trying to invoke the
MBean's constructor.
javax.management.InstanceAlreadyExistsException - The MBean is already under the
control of the MBean server.
javax.management.MBeanRegistrationException - The preRegister (MBeanRegistration
interface) method of the MBean has thrown an exception. The
MBean will not be registered.
javax.management.MBeanException - The constructor of the MBean has thrown an
exception
javax.management.NotCompliantMBeanException - This class is not a JMX compliant
MBean
java.io.IOException - A communication problem occurred when talking to the
MBean server.MBeanServerConnection.createMBean(java.lang.String,
javax.management.ObjectName)
public javax.management.ObjectInstance createMBean(java.lang.String className,
javax.management.ObjectName name,
javax.management.ObjectName loaderName)
throws javax.management.ReflectionException,
javax.management.InstanceAlreadyExistsException,
javax.management.MBeanRegistrationException,
javax.management.MBeanException,
javax.management.NotCompliantMBeanException,
javax.management.InstanceNotFoundException,
java.io.IOException
createMBean in interface javax.management.MBeanServerConnectionclassName - The class name of the MBean to be instantiated.name - The object name of the MBean. May be null.loaderName - The object name of the class loader to be used.
javax.management.ReflectionException - Wraps a java.lang.ClassNotFoundException or a
java.lang.Exception that occurred when trying to invoke the
MBean's constructor.
javax.management.InstanceAlreadyExistsException - The MBean is already under the
control of the MBean server.
javax.management.MBeanRegistrationException - The preRegister (MBeanRegistration
interface) method of the MBean has thrown an exception. The
MBean will not be registered.
javax.management.MBeanException - The constructor of the MBean has thrown an
exception
javax.management.NotCompliantMBeanException - This class is not a JMX compliant
MBean
javax.management.InstanceNotFoundException - The specified class loader is not
registered in the MBean server.
java.io.IOException - A communication problem occurred when talking to the
MBean server.MBeanServerConnection.createMBean(java.lang.String,
javax.management.ObjectName, javax.management.ObjectName)
public javax.management.ObjectInstance createMBean(java.lang.String className,
javax.management.ObjectName name,
java.lang.Object[] params,
java.lang.String[] signature)
throws javax.management.ReflectionException,
javax.management.InstanceAlreadyExistsException,
javax.management.MBeanRegistrationException,
javax.management.MBeanException,
javax.management.NotCompliantMBeanException,
java.io.IOException
createMBean in interface javax.management.MBeanServerConnectionclassName - The class name of the MBean to be instantiated.name - The object name of the MBean. May be null.params - An array containing the parameters of the constructor to be
invoked.signature - An array containing the signature of the constructor to
be invoked.
javax.management.ReflectionException - Wraps a java.lang.ClassNotFoundException or a
java.lang.Exception that occurred when trying to invoke the
MBean's constructor.
javax.management.InstanceAlreadyExistsException - The MBean is already under the
control of the MBean server.
javax.management.MBeanRegistrationException - The preRegister (MBeanRegistration
interface) method of the MBean has thrown an exception. The
MBean will not be registered.
javax.management.MBeanException - The constructor of the MBean has thrown an
exception
javax.management.NotCompliantMBeanException - This class is not a JMX compliant
MBean
java.io.IOException - A communication problem occurred when talking to the
MBean server.MBeanServerConnection.createMBean(java.lang.String,
javax.management.ObjectName, java.lang.Object[], java.lang.String[])
public javax.management.ObjectInstance createMBean(java.lang.String className,
javax.management.ObjectName name,
javax.management.ObjectName loaderName,
java.lang.Object[] params,
java.lang.String[] signature)
throws javax.management.ReflectionException,
javax.management.InstanceAlreadyExistsException,
javax.management.MBeanRegistrationException,
javax.management.MBeanException,
javax.management.NotCompliantMBeanException,
javax.management.InstanceNotFoundException,
java.io.IOException
createMBean in interface javax.management.MBeanServerConnectionclassName - The class name of the MBean to be instantiated.name - The object name of the MBean. May be null.params - An array containing the parameters of the constructor to be
invoked.signature - An array containing the signature of the constructor to
be invoked.loaderName - The object name of the class loader to be used.
javax.management.ReflectionException - Wraps a java.lang.ClassNotFoundException or a
java.lang.Exception that occurred when trying to invoke the
MBean's constructor.
javax.management.InstanceAlreadyExistsException - The MBean is already under the
control of the MBean server.
javax.management.MBeanRegistrationException - The preRegister (MBeanRegistration
interface) method of the MBean has thrown an exception. The
MBean will not be registered.
javax.management.MBeanException - The constructor of the MBean has thrown an
exception
javax.management.NotCompliantMBeanException - This class is not a JMX compliant
MBean
javax.management.InstanceNotFoundException - The specified class loader is not
registered in the MBean server.
java.io.IOException - - A communication problem occurred when talking to
the MBean server.MBeanServerConnection.createMBean(java.lang.String,
javax.management.ObjectName, javax.management.ObjectName,
java.lang.Object[], java.lang.String[])
public java.lang.Object getAttribute(javax.management.ObjectName name,
java.lang.String attribute)
throws javax.management.MBeanException,
javax.management.AttributeNotFoundException,
javax.management.InstanceNotFoundException,
javax.management.ReflectionException,
java.io.IOException
getAttribute in interface javax.management.MBeanServerConnectionname - The object name of the MBean from which the attribute is to
be retrieved.attribute - A String specifying the name of the attribute to be
retrieved.
javax.management.AttributeNotFoundException - The attribute specified is not
accessible in the MBean.
javax.management.MBeanException - Wraps an exception thrown by the MBean's getter.
javax.management.InstanceNotFoundException - The MBean specified is not registered
in the MBean server.
javax.management.ReflectionException - Wraps a java.lang.Exception thrown when
trying to invoke the setter.
java.io.IOException - A communication problem occurred when talking to the
MBean server.MBeanServerConnection.getAttribute(javax.management.ObjectName,
java.lang.String)
public javax.management.AttributeList getAttributes(javax.management.ObjectName name,
java.lang.String[] attributes)
throws javax.management.InstanceNotFoundException,
javax.management.ReflectionException,
java.io.IOException
getAttributes in interface javax.management.MBeanServerConnectionname - The object name of the MBean from which the attributes are
retrieved.attributes - A list of the attributes to be retrieved.
javax.management.InstanceNotFoundException - The MBean specified is not registered
in the MBean server.
javax.management.ReflectionException - An exception occurred when trying to invoke
the getAttributes method of a Dynamic MBean.
java.io.IOException - A communication problem occurred when talking to the
MBean server.MBeanServerConnection.getAttributes(javax.management.ObjectName,
java.lang.String[])
public java.lang.String getDefaultDomain()
throws java.io.IOException
getDefaultDomain in interface javax.management.MBeanServerConnectionjava.io.IOException - A communication problem occurred when talking to the
MBean server.MBeanServerConnection.getDefaultDomain()
public java.lang.String[] getDomains()
throws java.io.IOException
getDomains in interface javax.management.MBeanServerConnectionjava.io.IOException - - A communication problem occurred when talking to
the MBean server.MBeanServerConnection.getDomains()
public java.lang.Integer getMBeanCount()
throws java.io.IOException
getMBeanCount in interface javax.management.MBeanServerConnectionjava.io.IOException - A communication problem occurred when talking to the
MBean server.MBeanServerConnection.getMBeanCount()
public javax.management.MBeanInfo getMBeanInfo(javax.management.ObjectName name)
throws javax.management.InstanceNotFoundException,
javax.management.IntrospectionException,
javax.management.ReflectionException,
java.io.IOException
getMBeanInfo in interface javax.management.MBeanServerConnectionname - The name of the MBean to analyze
javax.management.IntrospectionException - An exception occurred during
introspection.
javax.management.InstanceNotFoundException - The MBean specified was not found.
javax.management.ReflectionException - An exception occurred when trying to invoke
the getMBeanInfo of a Dynamic MBean.
java.io.IOException - A communication problem occurred when talking to the
MBean server.MBeanServerConnection.getMBeanInfo(javax.management.ObjectName)
public javax.management.ObjectInstance getObjectInstance(javax.management.ObjectName name)
throws javax.management.InstanceNotFoundException,
java.io.IOException
getObjectInstance in interface javax.management.MBeanServerConnectionname - - The object name of the MBean.
javax.management.InstanceNotFoundException - - The MBean specified is not registered
in the MBean server.
java.io.IOException - - A communication problem occurred when talking to
the MBean server.MBeanServerConnection.getObjectInstance(javax.management.ObjectName)
public java.lang.Object invoke(javax.management.ObjectName name,
java.lang.String operationName,
java.lang.Object[] params,
java.lang.String[] signature)
throws javax.management.InstanceNotFoundException,
javax.management.MBeanException,
javax.management.ReflectionException,
java.io.IOException
invoke in interface javax.management.MBeanServerConnectionname - The object name of the MBean on which the method is to be
invoked.operationName - The name of the operation to be invoked.params - An array containing the parameters to be set when the
operation is invokedsignature - An array containing the signature of the operation. The
class objects will be loaded using the same class loader as
the one used for loading the MBean on which the operation was
invoked.
javax.management.InstanceNotFoundException - The MBean specified is not registered
in the MBean server.
javax.management.MBeanException - Wraps an exception thrown by the MBean's invoked
method.
javax.management.ReflectionException - Wraps a java.lang.Exception thrown while
trying to invoke the method.
java.io.IOException - A communication problem occurred when talking to the
MBean server.MBeanServerConnection.invoke(javax.management.ObjectName,
java.lang.String, java.lang.Object[], java.lang.String[])
public boolean isInstanceOf(javax.management.ObjectName name,
java.lang.String className)
throws javax.management.InstanceNotFoundException,
java.io.IOException
isInstanceOf in interface javax.management.MBeanServerConnectionname - The ObjectName of the MBean.className - The name of the class.
javax.management.InstanceNotFoundException - The MBean specified is not registered
in the MBean server.
java.io.IOException - A communication problem occurred when talking to the
MBean server.MBeanServerConnection.isInstanceOf(javax.management.ObjectName,
java.lang.String)
public boolean isRegistered(javax.management.ObjectName name)
throws java.io.IOException
isRegistered in interface javax.management.MBeanServerConnectionname - The object name of the MBean to be checked.
java.io.IOException - A communication problem occurred when talking to the
MBean server.MBeanServerConnection.isRegistered(javax.management.ObjectName)
public java.util.Set<javax.management.ObjectInstance> queryMBeans(javax.management.ObjectName name,
javax.management.QueryExp query)
throws java.io.IOException
queryMBeans in interface javax.management.MBeanServerConnectionname - The object name pattern identifying the MBeans to be
retrieved. If null or no domain and key properties are
specified, all the MBeans registered will be retrieved.query - The query expression to be applied for selecting MBeans. If
null no query expression will be applied for selecting MBeans.
java.io.IOException - A communication problem occurred when talking to the
MBean server.MBeanServerConnection.queryMBeans(javax.management.ObjectName,
javax.management.QueryExp)
public java.util.Set<javax.management.ObjectName> queryNames(javax.management.ObjectName name,
javax.management.QueryExp query)
throws java.io.IOException
queryNames in interface javax.management.MBeanServerConnectionname - The object name pattern identifying the MBean names to be
retrieved. If null or no domain and key properties are
specified, the name of all registered MBeans will be
retrieved.query - The query expression to be applied for selecting MBeans. If
null no query expression will be applied for selecting MBeans.
java.io.IOException - A communication problem occurred when talking to the
MBean server.MBeanServerConnection.queryNames(javax.management.ObjectName,
javax.management.QueryExp)
public void removeNotificationListener(javax.management.ObjectName name,
javax.management.NotificationListener listener)
throws javax.management.InstanceNotFoundException,
javax.management.ListenerNotFoundException,
java.io.IOException
removeNotificationListener in interface javax.management.MBeanServerConnectionname - The name of the MBean on which the listener should be
removed.listener - The object name of the listener to be removed.
javax.management.InstanceNotFoundException - The MBean name provided does not match
any of the registered MBeans.
javax.management.ListenerNotFoundException - The listener is not registered in the
MBean.
java.io.IOException - A communication problem occurred when talking to the
MBean server.MBeanServerConnection.removeNotificationListener(javax.management.ObjectName,
javax.management.NotificationListener)
public void removeNotificationListener(javax.management.ObjectName name,
javax.management.ObjectName listener)
throws javax.management.InstanceNotFoundException,
javax.management.ListenerNotFoundException,
java.io.IOException
removeNotificationListener in interface javax.management.MBeanServerConnectionname - The name of the MBean on which the listener should be
removed.listener - The object name of the listener to be removed.
javax.management.InstanceNotFoundException - The MBean name provided does not match
any of the registered MBeans.
javax.management.ListenerNotFoundException - The listener is not registered in the
MBean.
java.io.IOException - A communication problem occurred when talking to the
MBean server.MBeanServerConnection.removeNotificationListener(javax.management.ObjectName,
javax.management.ObjectName)
public void removeNotificationListener(javax.management.ObjectName name,
javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
java.lang.Object handback)
throws javax.management.InstanceNotFoundException,
javax.management.ListenerNotFoundException,
java.io.IOException
removeNotificationListener in interface javax.management.MBeanServerConnectionname - The name of the MBean on which the listener should be
removed.listener - A listener that was previously added to this MBean.filter - The filter that was specified when the listener was added.handback - The handback that was specified when the listener was
added.
javax.management.InstanceNotFoundException - The MBean name provided does not match
any of the registered MBeans.
javax.management.ListenerNotFoundException - The listener is not registered in the
MBean, or it is not registered with the given filter and
handback.
java.io.IOException - A communication problem occurred when talking to the
MBean server.MBeanServerConnection.removeNotificationListener(javax.management.ObjectName,
javax.management.NotificationListener,
javax.management.NotificationFilter, java.lang.Object)
public void removeNotificationListener(javax.management.ObjectName name,
javax.management.ObjectName listener,
javax.management.NotificationFilter filter,
java.lang.Object handback)
throws javax.management.InstanceNotFoundException,
javax.management.ListenerNotFoundException,
java.io.IOException
removeNotificationListener in interface javax.management.MBeanServerConnectionname - The name of the MBean on which the listener should be
removed.listener - A listener that was previously added to this MBean.filter - The filter that was specified when the listener was added.handback - The handback that was specified when the listener was
added.
javax.management.InstanceNotFoundException - The MBean name provided does not match
any of the registered MBeans.
javax.management.ListenerNotFoundException - The listener is not registered in the
MBean, or it is not registered with the given filter and
handback.
java.io.IOException - A communication problem occurred when talking to the
MBean server.MBeanServerConnection.removeNotificationListener(javax.management.ObjectName,
javax.management.ObjectName, javax.management.NotificationFilter,
java.lang.Object)
public void setAttribute(javax.management.ObjectName name,
javax.management.Attribute attribute)
throws javax.management.InstanceNotFoundException,
javax.management.AttributeNotFoundException,
javax.management.InvalidAttributeValueException,
javax.management.MBeanException,
javax.management.ReflectionException,
java.io.IOException
setAttribute in interface javax.management.MBeanServerConnectionname - The name of the MBean within which the attribute is to be
set.attribute - The identification of the attribute to be set and the
value it is to be set to.
javax.management.InstanceNotFoundException - The MBean specified is not registered
in the MBean server.
javax.management.AttributeNotFoundException - The attribute specified is not
accessible in the MBean.
javax.management.InvalidAttributeValueException - The value specified for the
attribute is not valid.
javax.management.MBeanException - Wraps an exception thrown by the MBean's setter.
javax.management.ReflectionException - Wraps a java.lang.Exception thrown when
trying to invoke the setter.
java.io.IOException - A communication problem occurred when talking to the
MBean server.MBeanServerConnection.setAttribute(javax.management.ObjectName,
javax.management.Attribute)
public javax.management.AttributeList setAttributes(javax.management.ObjectName name,
javax.management.AttributeList attributes)
throws javax.management.InstanceNotFoundException,
javax.management.ReflectionException,
java.io.IOException
setAttributes in interface javax.management.MBeanServerConnectionname - The object name of the MBean within which the attributes are
to be set.attributes - A list of attributes: The identification of the
attributes to be set and the values they are to be set to.
javax.management.InstanceNotFoundException - The MBean specified is not registered
in the MBean server.
javax.management.ReflectionException - An exception occurred when trying to invoke
the getAttributes method of a Dynamic MBean.
java.io.IOException - A communication problem occurred when talking to the
MBean server.MBeanServerConnection.setAttributes(javax.management.ObjectName,
javax.management.AttributeList)
public void unregisterMBean(javax.management.ObjectName name)
throws javax.management.InstanceNotFoundException,
javax.management.MBeanRegistrationException,
java.io.IOException
unregisterMBean in interface javax.management.MBeanServerConnectionname - The object name of the MBean to be unregistered.
javax.management.InstanceNotFoundException - - The MBean specified is not registered
in the MBean server.
javax.management.MBeanRegistrationException - - The preDeregister
((MBeanRegistration interface) method of the MBean has thrown
an exception.
java.io.IOException - - A communication problem occurred when talking to
the MBean server.MBeanServerConnection.unregisterMBean(javax.management.ObjectName)public void setMBeanServerConnection(javax.management.MBeanServerConnection cnx)
setMBeanServerConnection in interface org.ow2.jasmine.adapter.jmx.pool.api.IJMXConnectionServercnx - the connection to use.
public void connect()
throws java.io.IOException
java.io.IOException - If connection failed.public org.ow2.jasmine.adapter.jmx.pool.api.JMXConnectionParam getParam()
getParam in interface org.ow2.jasmine.adapter.jmx.pool.api.IJMXConnectionServer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||