Package org.onosproject.netconf
Class NetconfDeviceOutputEvent
- java.lang.Object
-
- org.onosproject.event.AbstractEvent<NetconfDeviceOutputEvent.Type,java.lang.Object>
-
- org.onosproject.netconf.NetconfDeviceOutputEvent
-
- All Implemented Interfaces:
org.onosproject.event.Event<NetconfDeviceOutputEvent.Type,java.lang.Object>
public final class NetconfDeviceOutputEvent extends org.onosproject.event.AbstractEvent<NetconfDeviceOutputEvent.Type,java.lang.Object>
Describes a NETCONF device related event.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNetconfDeviceOutputEvent.TypeType of device related events.
-
Constructor Summary
Constructors Constructor Description NetconfDeviceOutputEvent(NetconfDeviceOutputEvent.Type type, java.lang.Object subject, java.lang.String payload, java.util.Optional<java.lang.Integer> msgID, NetconfDeviceInfo netconfDeviceInfo)Creates an event of a given type and for the specified subject and the current time.NetconfDeviceOutputEvent(NetconfDeviceOutputEvent.Type type, java.lang.Object subject, java.lang.String payload, java.util.Optional<java.lang.Integer> msgID, NetconfDeviceInfo netconfDeviceInfo, long time)Creates an event of a given type and for the specified subject and time.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NetconfDeviceInfogetDeviceInfo()Event-related device information.java.util.Optional<java.lang.Integer>getMessageID()Reply messageId.java.lang.StringgetMessagePayload()return the message payload of the reply form the device.java.lang.StringtoString()
-
-
-
Constructor Detail
-
NetconfDeviceOutputEvent
public NetconfDeviceOutputEvent(NetconfDeviceOutputEvent.Type type, java.lang.Object subject, java.lang.String payload, java.util.Optional<java.lang.Integer> msgID, NetconfDeviceInfo netconfDeviceInfo)
Creates an event of a given type and for the specified subject and the current time.- Parameters:
type- event typesubject- event subjectpayload- message from the devicemsgID- id of the message related to the eventnetconfDeviceInfo- device of event
-
NetconfDeviceOutputEvent
public NetconfDeviceOutputEvent(NetconfDeviceOutputEvent.Type type, java.lang.Object subject, java.lang.String payload, java.util.Optional<java.lang.Integer> msgID, NetconfDeviceInfo netconfDeviceInfo, long time)
Creates an event of a given type and for the specified subject and time.- Parameters:
type- event typesubject- event subjectpayload- message from the devicemsgID- id of the message related to the eventnetconfDeviceInfo- device of eventtime- occurrence time
-
-
Method Detail
-
getMessagePayload
public java.lang.String getMessagePayload()
return the message payload of the reply form the device.- Returns:
- reply
-
getDeviceInfo
public NetconfDeviceInfo getDeviceInfo()
Event-related device information.- Returns:
- information about the device
-
getMessageID
public java.util.Optional<java.lang.Integer> getMessageID()
Reply messageId.- Returns:
- messageId
-
toString
public java.lang.String toString()
- Overrides:
toStringin classorg.onosproject.event.AbstractEvent<NetconfDeviceOutputEvent.Type,java.lang.Object>
-
-