org.apache.commons.modeler.ant
Class ServiceTask

java.lang.Object
  extended by Task
      extended by org.apache.commons.modeler.ant.ServiceTask

public class ServiceTask
extends Task

Group a set of mbeans in a service, and perform actions on it.


Field Summary
(package private)  java.lang.String action
           
private static Log log
           
(package private)  java.util.List mbeans
           
(package private)  java.lang.String refId
           
 
Constructor Summary
ServiceTask()
           
 
Method Summary
 void addMbean(MLETTask mbean)
           
 void execute()
           
 java.util.List getMbeans()
           
 void setAction(java.lang.String action)
          Set action to be executed on the mbean collection.
 void setRefId(java.lang.String ref)
          Perform the action on a previously declared service
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static Log log

mbeans

java.util.List mbeans

action

java.lang.String action

refId

java.lang.String refId
Constructor Detail

ServiceTask

public ServiceTask()
Method Detail

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.

Parameters:
action -

setRefId

public void setRefId(java.lang.String ref)
Perform the action on a previously declared service


execute

public void execute()
             throws BuildException
Throws:
BuildException


Copyright (c) 2001-2003 - Apache Software Foundation