Class FrontendType
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 Summary
Modifier and TypeMethodDescriptionintcompareTo(FrontendType obj) booleanstatic @NonNull FrontendTypeReturn aFrontendTypecorresponding to a string representation.@NonNull StringgetName()inthashCode()static @NonNull FrontendTypetoString()@NonNull FrontendTypetoYang()voidwriteTo(DataOutput out)
-
Method Details
-
forName
Return aFrontendTypecorresponding 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
FrontendTypeinstance - Throws:
IllegalArgumentException- if the string is null, empty or contains invalid characters
-
readFrom
- Throws:
IOException
-
writeTo
- Specified by:
writeToin interfaceorg.opendaylight.yangtools.concepts.WritableObject- Throws:
IOException
-
getName
-
toYang
-
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareToin interfaceComparable<FrontendType>
-
toString
-