public final class NetconfNotification
extends org.opendaylight.netconf.api.NetconfMessage
| Modifier and Type | Field and Description |
|---|---|
static String |
EVENT_TIME |
static String |
NOTIFICATION |
static String |
NOTIFICATION_NAMESPACE |
static Function<Date,String> |
RFC3339_DATE_FORMATTER
|
static Function<String,Date> |
RFC3339_DATE_PARSER
|
static Date |
UNKNOWN_EVENT_TIME
Used for unknown/un-parse-able event-times.
|
| Constructor and Description |
|---|
NetconfNotification(Document notificationContent)
Create new notification and capture the timestamp in the constructor.
|
NetconfNotification(Document notificationContent,
Date eventTime)
Create new notification with provided timestamp.
|
| Modifier and Type | Method and Description |
|---|---|
Date |
getEventTime()
Get the time of the event.
|
public static final String NOTIFICATION
public static final String NOTIFICATION_NAMESPACE
public static final Function<String,Date> RFC3339_DATE_PARSER
String object into a Date using the time-zone
offset for UTC, ZoneOffset.UTC, and the system default time-zone,
ZoneId.systemDefault().
While parsing, if an exception occurs, we try to handle it as if it is due
to a leap second. If that's the case, a simple conversion is applied, replacing
the second-of-minute of 60 with 59.
If that's not the case, we propagate the DateTimeParseException to the
caller.
public static final String EVENT_TIME
public static final Date UNKNOWN_EVENT_TIME
public NetconfNotification(Document notificationContent)
public Date getEventTime()
Copyright © 2020 OpenDaylight. All rights reserved.