Class NetconfDeviceOutputEvent

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  NetconfDeviceOutputEvent.Type
      Type of device related events.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      NetconfDeviceInfo getDeviceInfo()
      Event-related device information.
      java.util.Optional<java.lang.Integer> getMessageID()
      Reply messageId.
      java.lang.String getMessagePayload()
      return the message payload of the reply form the device.
      java.lang.String toString()  
      • Methods inherited from class org.onosproject.event.AbstractEvent

        subject, time, type
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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 type
        subject - event subject
        payload - message from the device
        msgID - id of the message related to the event
        netconfDeviceInfo - 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 type
        subject - event subject
        payload - message from the device
        msgID - id of the message related to the event
        netconfDeviceInfo - device of event
        time - 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:
        toString in class org.onosproject.event.AbstractEvent<NetconfDeviceOutputEvent.Type,​java.lang.Object>