Class JoinElectionDomain

  • All Implemented Interfaces:
    org.apache.karaf.shell.api.action.Action, RoleChangeHandler

    public class JoinElectionDomain
    extends Object
    implements org.apache.karaf.shell.api.action.Action, RoleChangeHandler
    A command to exercise HA redundancy leader election functionality.
    • Constructor Detail

      • JoinElectionDomain

        public JoinElectionDomain()
    • Method Detail

      • execute

        public Object execute()
        Specified by:
        execute in interface org.apache.karaf.shell.api.action.Action
      • handleRoleChange

        public void handleRoleChange​(Role role,
                                     String domain)
        Description copied from interface: RoleChangeHandler
        Handle role changing. Implementations of this method must not block.
        Specified by:
        handleRoleChange in interface RoleChangeHandler
        Parameters:
        role - the new role
        domain - the domain the role is being changed for