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 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 Objectexecute()voidhandleRoleChange(Role role, String domain)Handle role changing.
-
-
-
Method Detail
-
execute
public Object execute()
- Specified by:
executein interfaceorg.apache.karaf.shell.api.action.Action
-
handleRoleChange
public void handleRoleChange(Role role, String domain)
Description copied from interface:RoleChangeHandlerHandle role changing. Implementations of this method must not block.- Specified by:
handleRoleChangein interfaceRoleChangeHandler- Parameters:
role- the new roledomain- the domain the role is being changed for
-
-