java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.commons.modeler.ant.ServiceTask
- public class ServiceTask
- extends org.apache.tools.ant.Task
Group a set of mbeans in a service, and perform actions on
it.
| Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
private static org.apache.commons.logging.Log log
mbeans
java.util.List mbeans
action
java.lang.String action
refId
java.lang.String refId
ServiceTask
public ServiceTask()
addMbean
public void addMbean(MLETTask mbean)
getMbeans
public java.util.List getMbeans()
setAction
public void setAction(java.lang.String action)
- Set action to be executed on the mbean collection.
If null - we'll perform init and start.
setRefId
public void setRefId(java.lang.String ref)
- Perform the action on a previously declared service
execute
public void execute()
throws org.apache.tools.ant.BuildException
- Description copied from class:
org.apache.tools.ant.Task
- Called by the project to let the task do its work. This method may be
called more than once, if the task is invoked more than once.
For example,
if target1 and target2 both depend on target3, then running
"ant target1 target2" will run all tasks in target3 twice.