|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface that provides access to a remote JMX server. JMXConnector provides a consistent interface for functions required by the Ant JMX tasks not current covered adequately by the JMX specification.
Implementations of this interface are instantiated byJMXConnectorFactory
. JMXConnectorFactory will locate
the correct JMXConnector implementation based on the value of the
serverType attribute that appears on the ANT task.
JMXConnectorFactory locates the JMXConnector implementation
by first using the serverType argument as part of the
package name according to the following template:
org.apache.tools.ant.taskdefs.optional.jmx.connector.
Method Summary | |
javax.management.ObjectName |
createMBean(java.lang.String type,
javax.management.ObjectName objectName,
javax.management.MBeanServer mbserver)
Creates & registers an MBean with an MBeanServer. |
java.lang.String |
getActiveDomain(javax.management.MBeanServer mbserver)
Returns the active/default domain for this JMXServer. |
java.util.Hashtable |
getInitialContextProperties(java.util.Hashtable contextProps)
Returns a base set of initial context properties that apply to this JMXServer adaptor. |
java.util.Hashtable |
getInitialContextProperties(java.lang.String providerUrl,
java.lang.String user,
java.lang.String password)
Returns a base set of initial context properties that apply to this JMXServer adaptor. |
javax.management.MBeanServer |
getMBeanServer(java.util.Hashtable contextProps,
java.lang.String jndiLookupName)
Connects to a JMX server and returns the MBeanServer to use during task execution. |
Method Detail |
public java.util.Hashtable getInitialContextProperties(java.util.Hashtable contextProps)
public java.util.Hashtable getInitialContextProperties(java.lang.String providerUrl, java.lang.String user, java.lang.String password)
public javax.management.MBeanServer getMBeanServer(java.util.Hashtable contextProps, java.lang.String jndiLookupName) throws org.apache.tools.ant.BuildException
context
- The set of properties used to locate
and connect to the JMX server.jndiLookupName
- The JNDI entry name for the MBeanServer.public javax.management.ObjectName createMBean(java.lang.String type, javax.management.ObjectName objectName, javax.management.MBeanServer mbserver) throws javax.management.MBeanRegistrationException
type
- The type or classname of the MBean to create.objectName
- The name of the MBean to create.mbserver
- The server where the new MBean will be created.public java.lang.String getActiveDomain(javax.management.MBeanServer mbserver)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |