Package org.onosproject.netconf
Enum NetconfDeviceOutputEvent.Type
- java.lang.Object
-
- java.lang.Enum<NetconfDeviceOutputEvent.Type>
-
- org.onosproject.netconf.NetconfDeviceOutputEvent.Type
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<NetconfDeviceOutputEvent.Type>
- Enclosing class:
- NetconfDeviceOutputEvent
public static enum NetconfDeviceOutputEvent.Type extends java.lang.Enum<NetconfDeviceOutputEvent.Type>
Type of device related events.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DEVICE_ERRORSignifies that the device has encountered an error.DEVICE_NOTIFICATIONSignifies that the device sent a notification.DEVICE_REPLYSignifies that sent a reply to a request.DEVICE_UNREGISTEREDSignifies that the device is not reachable.SESSION_CLOSEDSignifies that the device has closed the session.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NetconfDeviceOutputEvent.TypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static NetconfDeviceOutputEvent.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEVICE_REPLY
public static final NetconfDeviceOutputEvent.Type DEVICE_REPLY
Signifies that sent a reply to a request.
-
DEVICE_NOTIFICATION
public static final NetconfDeviceOutputEvent.Type DEVICE_NOTIFICATION
Signifies that the device sent a notification.
-
DEVICE_UNREGISTERED
public static final NetconfDeviceOutputEvent.Type DEVICE_UNREGISTERED
Signifies that the device is not reachable.
-
DEVICE_ERROR
public static final NetconfDeviceOutputEvent.Type DEVICE_ERROR
Signifies that the device has encountered an error.
-
SESSION_CLOSED
public static final NetconfDeviceOutputEvent.Type SESSION_CLOSED
Signifies that the device has closed the session. ONOS will try to reopen it, if it fails again it will mark the device as unreachable.
-
-
Method Detail
-
values
public static NetconfDeviceOutputEvent.Type[] 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 (NetconfDeviceOutputEvent.Type c : NetconfDeviceOutputEvent.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NetconfDeviceOutputEvent.Type valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-