Package org.onosproject.gnmi.api
Class GnmiUpdate
- java.lang.Object
-
- org.onosproject.gnmi.api.GnmiUpdate
-
- All Implemented Interfaces:
GnmiEventSubject
public class GnmiUpdate extends java.lang.Object implements GnmiEventSubject
Event class for gNMI update.
-
-
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.DeviceIddeviceId()Returns the deviceId associated to this subject.booleansyncResponse()indicate target has sent all values associated with the subscription at least once.java.lang.StringtoString()gnmi.Gnmi.Notificationupdate()Gets the update data.
-
-
-
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 eventupdate- the update for this eventsyncResponse- 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:GnmiEventSubjectReturns the deviceId associated to this subject.- Specified by:
deviceIdin interfaceGnmiEventSubject- Returns:
- the device ID
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-