public class DeactivateServiceTask extends ComponentBasedTask
A Rhino management sub task for deactivating 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 deactivate. |
Only required/allowed if the |
nodes |
Comma-separated list of node IDs on which the service should be deactivated. |
No. If omitted an attempt is made to deactivate the service on all current cluster members. |
Element | Description | Required |
---|---|---|
component |
Identifies the service to deactivate.
See |
Only required/allowed if the |
The task is run targeting a service which is not active.
The task is run targeting a non-existant service.
component
client, failOnError
Constructor and Description |
---|
DeactivateServiceTask() |
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)