public final class NetconfDeviceOutputEvent extends org.onosproject.event.AbstractEvent<NetconfDeviceOutputEvent.Type,Object>
| Modifier and Type | Class and Description |
|---|---|
static class |
NetconfDeviceOutputEvent.Type
Type of network configuration events.
|
| Constructor and Description |
|---|
NetconfDeviceOutputEvent(NetconfDeviceOutputEvent.Type type,
Object subject,
String payload,
Optional<Integer> msgID,
NetconfDeviceInfo netconfDeviceInfo)
Creates an event of a given type and for the specified subject and the
current time.
|
NetconfDeviceOutputEvent(NetconfDeviceOutputEvent.Type type,
Object subject,
String payload,
Optional<Integer> msgID,
NetconfDeviceInfo netconfDeviceInfo,
long time)
Creates an event of a given type and for the specified subject and time.
|
| Modifier and Type | Method and Description |
|---|---|
NetconfDeviceInfo |
getDeviceInfo()
Event-related device information.
|
Optional<Integer> |
getMessageID()
Reply messageId.
|
String |
getMessagePayload()
return the message payload of the reply form the device.
|
public NetconfDeviceOutputEvent(NetconfDeviceOutputEvent.Type type, Object subject, String payload, Optional<Integer> msgID, NetconfDeviceInfo netconfDeviceInfo)
type - event typesubject - event subjectpayload - message from the devicemsgID - id of the message related to the eventnetconfDeviceInfo - device of eventpublic NetconfDeviceOutputEvent(NetconfDeviceOutputEvent.Type type, Object subject, String payload, Optional<Integer> msgID, NetconfDeviceInfo netconfDeviceInfo, long time)
type - event typesubject - event subjectpayload - message from the devicemsgID - id of the message related to the eventnetconfDeviceInfo - device of eventtime - occurrence timepublic String getMessagePayload()
public NetconfDeviceInfo getDeviceInfo()