Class GnmiUpdate

    • Constructor Summary

      Constructors 
      Constructor Description
      GnmiUpdate​(org.onosproject.net.DeviceId deviceId, gnmi.Gnmi.Notification update, boolean syncResponse)
      Default constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.onosproject.net.DeviceId deviceId()
      Returns the deviceId associated to this subject.
      boolean syncResponse()
      indicate target has sent all values associated with the subscription at least once.
      java.lang.String toString()  
      gnmi.Gnmi.Notification update()
      Gets the update data.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • GnmiUpdate

        public GnmiUpdate​(org.onosproject.net.DeviceId deviceId,
                          gnmi.Gnmi.Notification update,
                          boolean syncResponse)
        Default constructor.
        Parameters:
        deviceId - the device id for this event
        update - the update for this event
        syncResponse - indicate target has sent all values associated with the subscription at least once.
    • Method Detail

      • update

        public gnmi.Gnmi.Notification update()
        Gets the update data.
        Returns:
        the update data
      • syncResponse

        public boolean syncResponse()
        indicate target has sent all values associated with the subscription at least once.
        Returns:
        true if all value from target has sent
      • deviceId

        public org.onosproject.net.DeviceId deviceId()
        Description copied from interface: GnmiEventSubject
        Returns the deviceId associated to this subject.
        Specified by:
        deviceId in interface GnmiEventSubject
        Returns:
        the device ID
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object