Class JoinElectionDomain

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

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object execute()  
      void handleRoleChange​(Role role, java.lang.String domain)
      Handle role changing.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JoinElectionDomain

        public JoinElectionDomain()
    • Method Detail

      • execute

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

        public void handleRoleChange​(Role role,
                                     java.lang.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