Home » apache-tomcat-6.0.26-src » org.apache » catalina » ant » jmx » [javadoc | source]
org.apache.catalina.ant.jmx
public class: JMXAccessorCreateTask [javadoc | source]
java.lang.Object
   org.apache.tools.ant.ProjectComponent
      org.apache.tools.ant.Task
         org.apache.catalina.ant.BaseRedirectorHelperTask
            org.apache.catalina.ant.jmx.JMXAccessorTask
               org.apache.catalina.ant.jmx.JMXAccessorCreateTask

All Implemented Interfaces:
    Cloneable

Create new MBean at JMX JSR 160 MBeans Server.

Examples:
create a new Mbean at jmx.server connection

  <jmx:create
          ref="jmx.server"
          name="Catalina:type=MBeanFactory"
          className="org.apache.catalina.mbeans.MBeanFactory"
          classLoader="Catalina:type=ServerClassLoader,name=server">
           <Arg value="org.apache.catalina.mbeans.MBeanFactory" />
  </jmxCreate/>

WARNINGNot all Tomcat MBeans can create remotely and autoregister by its parents! Please, use the MBeanFactory operation to generate valves and realms.

First call to a remote MBeanserver save the JMXConnection a reference jmx.server

These tasks require Ant 1.6 or later interface.
Fields inherited from org.apache.catalina.ant.jmx.JMXAccessorTask:
JMX_SERVICE_PREFIX,  JMX_SERVICE_SUFFIX
Fields inherited from org.apache.catalina.ant.BaseRedirectorHelperTask:
redirector,  redirectorElement,  redirectOutStream,  redirectErrStream,  redirectOutPrintStream,  redirectErrPrintStream,  failOnError,  redirectOutput,  redirectorConfigured,  alwaysLog
Fields inherited from org.apache.tools.ant.Task:
target,  taskName,  taskType,  wrapper
Fields inherited from org.apache.tools.ant.ProjectComponent:
project,  location,  description
Method from org.apache.catalina.ant.jmx.JMXAccessorCreateTask Summary:
addArg,   getArgs,   getClassLoader,   getClassName,   getInfo,   jmxCreate,   jmxExecute,   setArgs,   setClassLoader,   setClassName
Methods from org.apache.catalina.ant.jmx.JMXAccessorTask:
accessJMXConnection,   convertStringToType,   createJMXConnection,   createProperty,   createProperty,   echoResult,   execute,   getDelimiter,   getHost,   getIf,   getInfo,   getJMXConnection,   getName,   getPassword,   getPort,   getProperties,   getProperty,   getRef,   getResultproperty,   getUnless,   getUrl,   getUsername,   isEcho,   isSeparatearrayresults,   isUseRef,   jmxExecute,   setDelimiter,   setEcho,   setHost,   setIf,   setName,   setPassword,   setPort,   setProperty,   setRef,   setResultproperty,   setSeparatearrayresults,   setUnless,   setUrl,   setUsername,   testIfCondition,   testUnlessCondition
Methods from org.apache.catalina.ant.BaseRedirectorHelperTask:
addConfiguredRedirector,   closeRedirector,   handleErrorFlush,   handleErrorOutput,   handleFlush,   handleFlush,   handleOutput,   handleOutput,   isFailOnError,   openRedirector,   setAlwaysLog,   setAppend,   setCreateEmptyFiles,   setError,   setErrorProperty,   setFailonerror,   setLogError,   setOutput,   setOutputproperty
Methods from org.apache.tools.ant.Task:
bindToOwner,   execute,   getOwningTarget,   getRuntimeConfigurableWrapper,   getTaskName,   getTaskType,   getWrapper,   handleErrorFlush,   handleErrorOutput,   handleFlush,   handleInput,   handleOutput,   init,   isInvalid,   log,   log,   log,   log,   markInvalid,   maybeConfigure,   perform,   reconfigure,   setOwningTarget,   setRuntimeConfigurableWrapper,   setTaskName,   setTaskType
Methods from org.apache.tools.ant.ProjectComponent:
clone,   getDescription,   getLocation,   getProject,   log,   log,   setDescription,   setLocation,   setProject
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.catalina.ant.jmx.JMXAccessorCreateTask Detail:
 public  void addArg(Arg arg) 
 public List getArgs() 
 public String getClassLoader() 
 public String getClassName() 
 public String getInfo() 
    Return descriptive information about this implementation and the corresponding version number, in the format <description>/<version>.
 protected String jmxCreate(MBeanServerConnection jmxServerConnection,
    String name) throws Exception 
    create new Mbean and when set from ClassLoader Objectname
 public String jmxExecute(MBeanServerConnection jmxServerConnection) throws Exception 
    Execute the specified command, based on the configured properties. The input stream will be closed upon completion of this task, whether it was executed successfully or not.
 public  void setArgs(List args) 
 public  void setClassLoader(String classLoaderName) 
 public  void setClassName(String className)