Class JoinElectionDomain
- java.lang.Object
-
- org.opennms.features.distributed.coordination.shell.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.
-
-
Constructor Summary
Constructors Constructor Description JoinElectionDomain()
-
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.
-
-
-
Method Detail
-
execute
public java.lang.Object execute()
- Specified by:
execute
in interfaceorg.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 interfaceRoleChangeHandler
- Parameters:
role
- the new roledomain
- the domain the role is being changed for
-
-