Enum Class LeaderLocation

java.lang.Object
java.lang.Enum<LeaderLocation>
org.opendaylight.controller.cluster.dom.api.LeaderLocation
All Implemented Interfaces:
Serializable, Comparable<LeaderLocation>, Constable

public enum LeaderLocation extends Enum<LeaderLocation>
Enumeration of possible shard leader locations relative to the local node.
  • Enum Constant Details

    • LOCAL

      public static final LeaderLocation LOCAL
      The leader is co-located on this node.
    • REMOTE

      public static final LeaderLocation REMOTE
      The leader is resident on a different node.
    • UNKNOWN

      public static final LeaderLocation UNKNOWN
      The leader is residence is currently unknown. This is a transition state during a leader failure, which can be caused by a network partition. This state is not observed during a leadership transfer vote initiated by the leader shutting down.
  • Method Details

    • values

      public static LeaderLocation[] 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 LeaderLocation 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