|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.tools.ant.taskdefs.optional.jmx.connector.AbstractJMXConnector
Abstract base implementation of JMXConnector for JMX server types that are located through JNDI.
Constructor Summary | |
AbstractJMXConnector()
Creates a new instance of AbstractJMXConnector |
Method Summary | |
javax.management.ObjectName |
createMBean(java.lang.String type,
javax.management.ObjectName objectName,
javax.management.MBeanServer mbserver)
This implementation simply calls mbserver.createMBean(). |
java.lang.String |
getActiveDomain(javax.management.MBeanServer mbserver)
This implementation returns mbserver.getDefaultDomain() as the active/default domain. |
java.util.Hashtable |
getInitialContextProperties(java.util.Hashtable contextProps)
This implementation returns the contextProps unmodified. |
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. |
abstract javax.management.MBeanServer |
getMBeanServer(javax.naming.Context context,
java.lang.String jndiLookupName)
Connects to a JMX server and returns the MBeanServer to use during task execution. |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AbstractJMXConnector()
Method Detail |
public java.util.Hashtable getInitialContextProperties(java.lang.String providerUrl, java.lang.String user, java.lang.String password)
JMXConnector
getInitialContextProperties
in interface JMXConnector
public javax.management.ObjectName createMBean(java.lang.String type, javax.management.ObjectName objectName, javax.management.MBeanServer mbserver) throws javax.management.MBeanRegistrationException
createMBean
in interface JMXConnector
org.apache.tools.ant.taskdefs.optional.jmx.connector.JMXConnector
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)
getActiveDomain
in interface JMXConnector
public java.util.Hashtable getInitialContextProperties(java.util.Hashtable contextProps)
getInitialContextProperties
in interface JMXConnector
public javax.management.MBeanServer getMBeanServer(java.util.Hashtable contextProps, java.lang.String jndiLookupName) throws org.apache.tools.ant.BuildException
JMXConnector
getMBeanServer
in interface JMXConnector
org.apache.tools.ant.taskdefs.optional.jmx.connector.JMXConnector
context
- The set of properties used to locate
and connect to the JMX server.jndiLookupName
- The JNDI entry name for the MBeanServer.public abstract javax.management.MBeanServer getMBeanServer(javax.naming.Context context, java.lang.String jndiLookupName) throws javax.naming.NamingException, org.apache.tools.ant.BuildException
context
- The JNDI naming context to use to lookup
the jndiLookupName entry. The caller is responsible for
closing this context.jndiLookupName
- The JNDI entry name for the MBeanServer.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |