java.lang.Object
org.opendaylight.controller.cluster.access.concepts.FrontendType
All Implemented Interfaces:
Serializable, Comparable<FrontendType>, org.opendaylight.yangtools.concepts.Identifier, org.opendaylight.yangtools.concepts.Immutable, org.opendaylight.yangtools.concepts.WritableIdentifier, org.opendaylight.yangtools.concepts.WritableObject

public final class FrontendType extends Object implements Comparable<FrontendType>, org.opendaylight.yangtools.concepts.WritableIdentifier
An Identifier identifying a data store frontend type, which is able to access the data store backend. Frontend implementations need to define this identifier so that multiple clients existing on a member node can be discerned.
See Also:
  • Method Details

    • forName

      public static @NonNull FrontendType forName(String name)
      Return a FrontendType corresponding to a string representation. Input string has constraints on what characters it can contain. It may contain the following: - US-ASCII letters and numbers - special characters: -_.*+:=,!~';
      Parameters:
      name - the input name
      Returns:
      A FrontendType instance
      Throws:
      IllegalArgumentException - if the string is null, empty or contains invalid characters
    • readFrom

      public static @NonNull FrontendType readFrom(DataInput in) throws IOException
      Throws:
      IOException
    • writeTo

      public void writeTo(DataOutput out) throws IOException
      Specified by:
      writeTo in interface org.opendaylight.yangtools.concepts.WritableObject
      Throws:
      IOException
    • getName

      public @NonNull String getName()
    • toYang

      public @NonNull FrontendType toYang()
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface org.opendaylight.yangtools.concepts.Identifier
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface org.opendaylight.yangtools.concepts.Identifier
      Overrides:
      equals in class Object
    • compareTo

      public int compareTo(FrontendType obj)
      Specified by:
      compareTo in interface Comparable<FrontendType>
    • toString

      public String toString()
      Specified by:
      toString in interface org.opendaylight.yangtools.concepts.Identifier
      Overrides:
      toString in class Object