Package org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.netconf.notifications.rev120206
Enum NetconfSessionEnd.TerminationReason
- java.lang.Object
-
- java.lang.Enum<NetconfSessionEnd.TerminationReason>
-
- org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.netconf.notifications.rev120206.NetconfSessionEnd.TerminationReason
-
- All Implemented Interfaces:
Serializable,Comparable<NetconfSessionEnd.TerminationReason>,org.opendaylight.yangtools.yang.binding.BindingObject,org.opendaylight.yangtools.yang.binding.Enumeration,org.opendaylight.yangtools.yang.binding.TypeObject
- Enclosing interface:
- NetconfSessionEnd
@Generated("mdsal-binding-generator") public static enum NetconfSessionEnd.TerminationReason extends Enum<NetconfSessionEnd.TerminationReason> implements org.opendaylight.yangtools.yang.binding.Enumeration
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BadHelloThe client's <hello> message was invalid.ClosedThe session was terminated by the client in normal fashion, e.g., by the NETCONF <close-session> protocol operation.DroppedThe session was terminated because the transport layer connection was unexpectedly closed.KilledThe session was terminated in abnormal fashion, e.g., by the NETCONF <kill-session> protocol operation.OtherThe session was terminated for some other reason.TimeoutThe session was terminated because of inactivity, e.g., waiting for the <hello> message or <rpc> messages.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Optional<NetconfSessionEnd.TerminationReason>forName(String name)Return the enumeration member whosegetName()matches specified value.static NetconfSessionEnd.TerminationReasonforValue(int intValue)Return the enumeration member whosegetIntValue()matches specified value.intgetIntValue()StringgetName()static NetconfSessionEnd.TerminationReasonvalueOf(String name)Returns the enum constant of this type with the specified name.static NetconfSessionEnd.TerminationReason[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Closed
public static final NetconfSessionEnd.TerminationReason Closed
The session was terminated by the client in normal fashion, e.g., by the NETCONF <close-session> protocol operation.
-
Killed
public static final NetconfSessionEnd.TerminationReason Killed
The session was terminated in abnormal fashion, e.g., by the NETCONF <kill-session> protocol operation.
-
Dropped
public static final NetconfSessionEnd.TerminationReason Dropped
The session was terminated because the transport layer connection was unexpectedly closed.
-
Timeout
public static final NetconfSessionEnd.TerminationReason Timeout
The session was terminated because of inactivity, e.g., waiting for the <hello> message or <rpc> messages.
-
BadHello
public static final NetconfSessionEnd.TerminationReason BadHello
The client's <hello> message was invalid.
-
Other
public static final NetconfSessionEnd.TerminationReason Other
The session was terminated for some other reason.
-
-
Method Detail
-
values
public static NetconfSessionEnd.TerminationReason[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (NetconfSessionEnd.TerminationReason c : NetconfSessionEnd.TerminationReason.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NetconfSessionEnd.TerminationReason valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getName
public String getName()
- Specified by:
getNamein interfaceorg.opendaylight.yangtools.yang.binding.Enumeration
-
getIntValue
public int getIntValue()
- Specified by:
getIntValuein interfaceorg.opendaylight.yangtools.yang.binding.Enumeration
-
forName
public static Optional<NetconfSessionEnd.TerminationReason> forName(String name)
Return the enumeration member whosegetName()matches specified value.- Parameters:
name- YANG assigned name- Returns:
- corresponding TerminationReason item, if present
- Throws:
NullPointerException- if name is null
-
forValue
public static NetconfSessionEnd.TerminationReason forValue(int intValue)
Return the enumeration member whosegetIntValue()matches specified value.- Parameters:
intValue- integer value- Returns:
- corresponding TerminationReason item, or null if no such item exists
-
-