org.apache.commons.modeler.ant

Class ServiceTask


public class ServiceTask
extends Task

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

Field Summary

(package private) String
action
private static Log
log
(package private) List
mbeans
(package private) String
refId

Constructor Summary

ServiceTask()

Method Summary

void
addMbean(MLETTask mbean)
void
execute()
List
getMbeans()
void
setAction(String action)
Set action to be executed on the mbean collection.
void
setRefId(String ref)
Perform the action on a previously declared service

Field Details

action

(package private)  String action


log

private static Log log


mbeans

(package private)  List mbeans


refId

(package private)  String refId

Constructor Details

ServiceTask

public ServiceTask()

Method Details

addMbean

public void addMbean(MLETTask mbean)


execute

public void execute()
            throws BuildException


getMbeans

public List getMbeans()


setAction

public void setAction(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(String ref)
Perform the action on a previously declared service


Copyright (c) 2001-2003 - Apache Software Foundation