org.apache.tools.ant.taskdefs.optional.jmx.connector.jboss
Class Connector
java.lang.Object
|
+--org.apache.tools.ant.taskdefs.optional.jmx.connector.AbstractJMXConnector
|
+--org.apache.tools.ant.taskdefs.optional.jmx.connector.jboss.Connector
- All Implemented Interfaces:
- JMXConnector
- public class Connector
- extends AbstractJMXConnector
JBoss specific implementation of JMXConnector.
Allows Ant-JMX taskdefs to lookup JBoss servers via JNDI
and connect to a MBeanServer via rmi or an alternate
protocol.
- Version:
- $Id: Connector.java,v 1.4 2003/05/28 22:28:26 bdueck Exp $
- Author:
- Brian Dueck
Method Summary |
java.util.Hashtable |
getInitialContextProperties(java.util.Hashtable contextProps)
This implementation returns the contextProps unmodified. |
javax.management.MBeanServer |
getMBeanServer(javax.naming.Context context,
java.lang.String jndiName)
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 |
Connector
public Connector()
getInitialContextProperties
public java.util.Hashtable getInitialContextProperties(java.util.Hashtable contextProps)
- Description copied from class:
AbstractJMXConnector
- This implementation returns the contextProps unmodified.
- Overrides:
getInitialContextProperties
in class AbstractJMXConnector
getMBeanServer
public javax.management.MBeanServer getMBeanServer(javax.naming.Context context,
java.lang.String jndiName)
throws javax.naming.NamingException,
org.apache.tools.ant.BuildException
- Description copied from class:
AbstractJMXConnector
- Connects to a JMX server and returns the MBeanServer to
use during task execution. The caller is responsible
for invoking this method prior to invoking createMBean()
or getActiveDomain() methods on this interface.
The getInitialContextProperties() method will be invoked
prior to this method.
- Overrides:
getMBeanServer
in class AbstractJMXConnector
- Following copied from class:
org.apache.tools.ant.taskdefs.optional.jmx.connector.AbstractJMXConnector
- Parameters:
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.