Enum Class LeaderElectionRole

java.lang.Object
java.lang.Enum<LeaderElectionRole>
org.apache.nifi.controller.leader.election.LeaderElectionRole
All Implemented Interfaces:
Serializable, Comparable<LeaderElectionRole>, Constable

public enum LeaderElectionRole extends Enum<LeaderElectionRole>
Leader Election Role enumeration for mapping public role to RFC 1123 subdomain-style names
  • Enum Constant Details

  • Field Details

    • roleName

      private final String roleName
    • roleId

      private final String roleId
  • Constructor Details

    • LeaderElectionRole

      private LeaderElectionRole(String roleName, String roleId)
  • Method Details

    • values

      public static LeaderElectionRole[] 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 LeaderElectionRole 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
    • getRoleName

      public String getRoleName()
    • getRoleId

      public String getRoleId()