Enum Class PrimaryNodeState

java.lang.Object
java.lang.Enum<PrimaryNodeState>
org.apache.nifi.annotation.notification.PrimaryNodeState
All Implemented Interfaces:
Serializable, Comparable<PrimaryNodeState>, Constable

public enum PrimaryNodeState extends Enum<PrimaryNodeState>
Represents a state change that occurred for the Primary Node of a NiFi cluster.
  • Enum Constant Details

    • ELECTED_PRIMARY_NODE

      public static final PrimaryNodeState ELECTED_PRIMARY_NODE
      The node receiving this state has been elected the Primary Node of the NiFi cluster.
    • PRIMARY_NODE_REVOKED

      public static final PrimaryNodeState PRIMARY_NODE_REVOKED
      The node receiving this state was the Primary Node but has now had its Primary Node role revoked.
  • Constructor Details

    • PrimaryNodeState

      private PrimaryNodeState()
  • Method Details

    • values

      public static PrimaryNodeState[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static PrimaryNodeState valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null