public class SetServiceReplicationSelectorsTask extends ComponentBasedTask
A Rhino management sub task for setting the replication selectors for a service.
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. |
Element | Description | Required |
---|---|---|
component |
Identifies the service to update.
See |
Yes. |
replicationselector |
Specifies a condition under which service replication should be enabled. May be repeated to add multiple conditions. If no conditions are specified, service replication will never occur. |
No. |
The task is run against a service that has already been deployed but already has the requested set of replication selectors.
component
client, failOnError
Constructor and Description |
---|
SetServiceReplicationSelectorsTask() |
Modifier and Type | Method and Description |
---|---|
void |
addReplicationSelector(ReplicationSelectorElement selector) |
protected void |
execute() |
protected void |
validateParameters() |
addComponent, findComponent
getExceptionAndMessage, getFailOnError, getMessage, getOverrideFailOnError, getParent, getProject, log, run, setFailOnError
public void addReplicationSelector(ReplicationSelectorElement selector)
protected void validateParameters() throws org.apache.tools.ant.BuildException
validateParameters
in class AbstractBaseTask
org.apache.tools.ant.BuildException
protected void execute() throws org.apache.tools.ant.BuildException
execute
in class AbstractBaseTask
org.apache.tools.ant.BuildException