Interface SystemGlobalState
-
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.BindingObject,org.opendaylight.yangtools.yang.binding.DataContainer,org.opendaylight.yangtools.yang.binding.DataObject
- All Known Subinterfaces:
State
@Generated("mdsal-binding-generator") public interface SystemGlobalState extends org.opendaylight.yangtools.yang.binding.DataObject
Global operational state data for the systemThis class represents the following YANG schema fragment defined in module openconfig-system
grouping system-global-state { leaf current-datetime { type oc-yang:date-and-time; } leaf boot-time { type oc-types:timeticks64; units nanoseconds; } }The schema path to identify an instance is openconfig-systemsystem-global-state
-
-
Field Summary
Fields Modifier and Type Field Description static @NonNull org.opendaylight.yangtools.yang.common.QNameQNAME
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Timeticks64getBootTime()Return bootTime, ornullif it is not present.DateAndTimegetCurrentDatetime()Return currentDatetime, ornullif it is not present.Class<? extends SystemGlobalState>implementedInterface()default @NonNull Timeticks64requireBootTime()Return bootTime, guaranteed to be non-null.default @NonNull DateAndTimerequireCurrentDatetime()Return currentDatetime, guaranteed to be non-null.
-
-
-
Method Detail
-
implementedInterface
Class<? extends SystemGlobalState> implementedInterface()
- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.DataContainer- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
getCurrentDatetime
DateAndTime getCurrentDatetime()
Return currentDatetime, ornullif it is not present.The current system date and time.- Returns:
DateAndTimecurrentDatetime, ornullif it is not present.
-
requireCurrentDatetime
default @NonNull DateAndTime requireCurrentDatetime()
Return currentDatetime, guaranteed to be non-null.The current system date and time.- Returns:
DateAndTimecurrentDatetime, guaranteed to be non-null.- Throws:
NoSuchElementException- if currentDatetime is not present
-
getBootTime
Timeticks64 getBootTime()
Return bootTime, ornullif it is not present.This timestamp indicates the time that the system was last restarted. The value is the timestamp in nanoseconds relative to the Unix Epoch (Jan 1, 1970 00:00:00 UTC).- Returns:
Timeticks64bootTime, ornullif it is not present.
-
requireBootTime
default @NonNull Timeticks64 requireBootTime()
Return bootTime, guaranteed to be non-null.This timestamp indicates the time that the system was last restarted. The value is the timestamp in nanoseconds relative to the Unix Epoch (Jan 1, 1970 00:00:00 UTC).- Returns:
Timeticks64bootTime, guaranteed to be non-null.- Throws:
NoSuchElementException- if bootTime is not present
-
-