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
Stringaction
static Loglog
Listmbeans
StringrefId
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

Field Detail

action

String action

log

private static Log log

mbeans

List mbeans

refId

String refId

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 (c) 2001-2003 - Apache Software Foundation