public class ActivateServiceTask extends ComponentBasedTask
A Rhino management sub task for activating Services.
Attribute | Description | Required |
---|---|---|
failonerror |
Flag to control failure behaviour.
If 'true', the sub task will throw a |
No. default value is taken from the Rhino management parent task. |
serviceid |
Canonical name of the service to activate. |
Only required/allowed if the |
nodes |
Comma-separated list of node IDs on which the service should be activated. |
No. If omitted an attempt is made to activate the service on all current cluster members. |
Element | Description | Required |
---|---|---|
component |
Identifies the service to activate.
See |
Only required/allowed if the |
The task is run targeting an already active service.
component
client, failOnError
Constructor and Description |
---|
ActivateServiceTask() |
Modifier and Type | Method and Description |
---|---|
protected void |
execute() |
void |
setNodes(String nodes) |
void |
setServiceID(String serviceID) |
protected void |
validateParameters() |
addComponent, findComponent
getExceptionAndMessage, getFailOnError, getMessage, getOverrideFailOnError, getParent, getProject, log, run, setFailOnError
protected void execute() throws org.apache.tools.ant.BuildException
execute
in class AbstractBaseTask
org.apache.tools.ant.BuildException
protected void validateParameters() throws org.apache.tools.ant.BuildException
validateParameters
in class AbstractBaseTask
org.apache.tools.ant.BuildException
public void setServiceID(String serviceID)
public void setNodes(String nodes)