Interface NodeStateManager

All Known Implementing Classes:
DefaultNodeStateManager

public interface NodeStateManager
Manage the state of nodes in the HA Cluster.
Since:
v6.1
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Activate the node.
    void
    Deactivate the node.
    void
     
    void
     
    void
    Shutdowns the node in the db.
  • Method Details

    • activate

      void activate() throws ClusterStateException
      Activate the node. This method will block until the node becomes active.
      Throws:
      ClusterStateException - when we can't become active as requested
    • deactivate

      void deactivate() throws NotClusteredException
      Deactivate the node. This method will block until the node becomes inactive (passive).
      Throws:
      NotClusteredException - if the instance is not clustered
    • quiesce

      void quiesce() throws NotClusteredException
      Throws:
      NotClusteredException
    • restart

      void restart()
    • shutdownNode

      void shutdownNode()
      Shutdowns the node in the db. The state of the node should be OFFLINE This will prevent the health checks to show abnormal behaviour in the cluster