Class NodeControl

java.lang.Object
io.aeron.cluster.NodeControl

public class NodeControl extends Object
Toggle control NodeControl.ToggleStates for a cluster node such as NodeControl.ToggleState.REPLICATE_STANDBY_SNAPSHOT. This can only be applied to individual nodes and does not apply across the cluster.
  • Field Details

    • CONTROL_TOGGLE_TYPE_ID

      public static final int CONTROL_TOGGLE_TYPE_ID
      Counter type id for the control toggle.
      See Also:
  • Constructor Details

    • NodeControl

      public NodeControl()
  • Method Details

    • findControlToggle

      public static AtomicCounter findControlToggle(CountersReader counters, int clusterId)
      Find the control toggle counter or return null if not found.
      Parameters:
      counters - to search within.
      clusterId - to which the allocated counter belongs.
      Returns:
      the control toggle counter or return null if not found.
    • main

      public static void main(String[] args)
      Main method for launching the process.
      Parameters:
      args - passed to the process.