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.
Constructor Summary
ServiceTask()
Method Summary
voidaddMbean(MLETTask mbean)
voidexecute()
ListgetMbeans()
voidsetAction(String action)
Set action to be executed on the mbean collection.
voidsetRefId(String ref)
Perform the action on a previously declared service

Constructor Detail

ServiceTask

public ServiceTask()

Method Detail

addMbean

public void addMbean(MLETTask mbean)

execute

public void execute()

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 © 2002-2009 Apache Software Foundation. All Rights Reserved.