|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.tools.ant.ProjectComponent | +--org.apache.tools.ant.Task | +--org.apache.tools.ant.taskdefs.optional.jmx.AbstractManagementTask | +--org.apache.tools.ant.taskdefs.optional.jmx.AbstractMBeanTask | +--org.apache.tools.ant.taskdefs.optional.jmx.CopyMBeanTask
This is an Ant task that allows a JMX mbean and all its attributes to be copied to a new domain, or mbean name. Refer to the user documentation for more information and examples on how to use this task.
Fields inherited from class org.apache.tools.ant.Task |
description, location, target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
project |
Constructor Summary | |
CopyMBeanTask()
|
Method Summary | |
protected void |
execute(javax.management.MBeanServer mbserver)
Process all nested |
protected javax.management.ObjectName |
getToObjectName()
Returns the MBean ObjectName based on the toName. |
void |
setIfExists(IfExists ifExists)
Sets the IfExists attribute. |
void |
setToName(java.lang.String toName)
Sets the toName attribute. |
void |
setType(java.lang.String type)
|
Methods inherited from class org.apache.tools.ant.taskdefs.optional.jmx.AbstractMBeanTask |
execute, findAttributeInfo, getActiveDomain, getAttributes, getAttributes, getFeatureNames, getJMXServer, getName, getObjectName, removeMBeanIfExists, setMBeanRef, setName, toString |
Methods inherited from class org.apache.tools.ant.taskdefs.optional.jmx.AbstractManagementTask |
getContext, getFailOnError, getJndiName, getPassword, getProviderUrl, getUser, setContext, setContextRef, setFailOnError, setJndiName, setPassword, setProviderUrl, setServerType, setUser |
Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorOutput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject, setProject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CopyMBeanTask()
Method Detail |
public void setToName(java.lang.String toName)
toName
attribute.toName
- The name of the new mbean.public void setType(java.lang.String type)
public void setIfExists(IfExists ifExists)
IfExists
attribute.
This attribute controls the behaviour of the copyMBean task
when an mbean with the same name as the target mbean
already exists.ifExists
- The value for the ifExists attribute.protected javax.management.ObjectName getToObjectName() throws javax.management.MalformedObjectNameException
protected void execute(javax.management.MBeanServer mbserver) throws org.apache.tools.ant.BuildException
execute
in class AbstractMBeanTask
mbserver
- The MBeanServer that hosts the mbean.org.apache.tools.ant.BuildException
- When an error occurs.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |