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 system

    This 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 Detail

      • QNAME

        static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAME
    • Method Detail

      • implementedInterface

        Class<? extends SystemGlobalState> implementedInterface()
        Specified by:
        implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataContainer
        Specified by:
        implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataObject
      • getCurrentDatetime

        DateAndTime getCurrentDatetime()
        Return currentDatetime, or null if it is not present.
             
                 The current system date and time.
             
         
        Returns:
        DateAndTime currentDatetime, or null if it is not present.
      • requireCurrentDatetime

        default @NonNull DateAndTime requireCurrentDatetime()
        Return currentDatetime, guaranteed to be non-null.
             
                 The current system date and time.
             
         
        Returns:
        DateAndTime currentDatetime, guaranteed to be non-null.
        Throws:
        NoSuchElementException - if currentDatetime is not present
      • getBootTime

        Timeticks64 getBootTime()
        Return bootTime, or null if 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:
        Timeticks64 bootTime, or null if 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:
        Timeticks64 bootTime, guaranteed to be non-null.
        Throws:
        NoSuchElementException - if bootTime is not present