Class EnableSymmetricActivationStateModeTask

  • All Implemented Interfaces:
    SubTask

    public class EnableSymmetricActivationStateModeTask
    extends AbstractBaseTask

    A Rhino management sub task for enabling symmetric activation state mode.

    Rhino versions prior to 3.0.0 had two modes of operation for managing the activation state of services and resource adaptor entities: per-node and symmetric. From Rhino 3.0.0 these two modes were combined and have been superseded by default desired state which can be overridden by per-node desired state. Per-node desired state overrides default desired state if present. Default desired state is effective if no per-node desired state exists. The commands and Ant tasks to enable and disable symmetric activation state mode remain but do not prevent later modification of per-node desired state.

    Ant Parameters
    Attribute Description Required

    templatenode

    The ID of the node to base symmetric state one. May be the string value 'any' to allow any node to be selected.

    Yes.

    failonerror

    Flag to control failure behaviour. If 'true', the sub task will throw a BuildException when an error is encountered. If 'false', the sub task will throw a NonFatalBuildException instead of a BuildException under specific circumstances. See below for conditions (if any) which will cause a NonFatalBuildException.

    No. default value is taken from the Rhino management parent task.

    NonFatalBuildException throw conditions
    • The task is run when the symmetric activation state mode is already enabled.

    • Constructor Detail

      • EnableSymmetricActivationStateModeTask

        public EnableSymmetricActivationStateModeTask()
    • Method Detail

      • validateParameters

        protected void validateParameters()
                                   throws org.apache.tools.ant.BuildException
        Specified by:
        validateParameters in class AbstractBaseTask
        Throws:
        org.apache.tools.ant.BuildException
      • execute

        protected void execute()
                        throws org.apache.tools.ant.BuildException
        Specified by:
        execute in class AbstractBaseTask
        Throws:
        org.apache.tools.ant.BuildException
      • setTemplateNode

        public void setTemplateNode​(String templateNode)