Interface SystemNtpServerConfig
-
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.BindingObject,org.opendaylight.yangtools.yang.binding.DataContainer,org.opendaylight.yangtools.yang.binding.DataObject
@Generated("mdsal-binding-generator") public interface SystemNtpServerConfig extends org.opendaylight.yangtools.yang.binding.DataObject
Configuration data for NTP serversThis class represents the following YANG schema fragment defined in module openconfig-system
grouping system-ntp-server-config { leaf address { type oc-inet:host; } leaf port { type oc-inet:port-number; default 123; } leaf version { type uint8 { range 1..4; } default 4; } leaf association-type { type enumeration { enum SERVER { } enum PEER { } enum POOL { } } default SERVER; } leaf iburst { type boolean; default false; } leaf prefer { type boolean; default false; } }The schema path to identify an instance is openconfig-systemsystem-ntp-server-config
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classSystemNtpServerConfig.AssociationType
-
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 HostgetAddress()Return address, ornullif it is not present.SystemNtpServerConfig.AssociationTypegetAssociationType()Return associationType, ornullif it is not present.BooleangetIburst()Return iburst, ornullif it is not present.PortNumbergetPort()Return port, ornullif it is not present.BooleangetPrefer()Return prefer, ornullif it is not present.org.opendaylight.yangtools.yang.common.Uint8getVersion()Return version, ornullif it is not present.Class<? extends SystemNtpServerConfig>implementedInterface()default @NonNull HostrequireAddress()Return address, guaranteed to be non-null.default @NonNull SystemNtpServerConfig.AssociationTyperequireAssociationType()Return associationType, guaranteed to be non-null.default @NonNull BooleanrequireIburst()Return iburst, guaranteed to be non-null.default @NonNull PortNumberrequirePort()Return port, guaranteed to be non-null.default @NonNull BooleanrequirePrefer()Return prefer, guaranteed to be non-null.default @NonNull org.opendaylight.yangtools.yang.common.Uint8requireVersion()Return version, guaranteed to be non-null.
-
-
-
Method Detail
-
implementedInterface
Class<? extends SystemNtpServerConfig> implementedInterface()
- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.DataContainer- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
getAddress
Host getAddress()
Return address, ornullif it is not present.The address or hostname of the NTP server.- Returns:
Hostaddress, ornullif it is not present.
-
requireAddress
default @NonNull Host requireAddress()
Return address, guaranteed to be non-null.The address or hostname of the NTP server.- Returns:
Hostaddress, guaranteed to be non-null.- Throws:
NoSuchElementException- if address is not present
-
getPort
PortNumber getPort()
Return port, ornullif it is not present.The port number of the NTP server.- Returns:
PortNumberport, ornullif it is not present.
-
requirePort
default @NonNull PortNumber requirePort()
Return port, guaranteed to be non-null.The port number of the NTP server.- Returns:
PortNumberport, guaranteed to be non-null.- Throws:
NoSuchElementException- if port is not present
-
getVersion
org.opendaylight.yangtools.yang.common.Uint8 getVersion()
Return version, ornullif it is not present.Version number to put in outgoing NTP packets- Returns:
Uint8version, ornullif it is not present.
-
requireVersion
default @NonNull org.opendaylight.yangtools.yang.common.Uint8 requireVersion()
Return version, guaranteed to be non-null.Version number to put in outgoing NTP packets- Returns:
Uint8version, guaranteed to be non-null.- Throws:
NoSuchElementException- if version is not present
-
getAssociationType
SystemNtpServerConfig.AssociationType getAssociationType()
Return associationType, ornullif it is not present.The desired association type for this NTP server.- Returns:
AssociationTypeassociationType, ornullif it is not present.
-
requireAssociationType
default @NonNull SystemNtpServerConfig.AssociationType requireAssociationType()
Return associationType, guaranteed to be non-null.The desired association type for this NTP server.- Returns:
AssociationTypeassociationType, guaranteed to be non-null.- Throws:
NoSuchElementException- if associationType is not present
-
getIburst
Boolean getIburst()
Return iburst, ornullif it is not present.Indicates whether this server should enable burst synchronization or not.- Returns:
Booleaniburst, ornullif it is not present.
-
requireIburst
default @NonNull Boolean requireIburst()
Return iburst, guaranteed to be non-null.Indicates whether this server should enable burst synchronization or not.- Returns:
Booleaniburst, guaranteed to be non-null.- Throws:
NoSuchElementException- if iburst is not present
-
getPrefer
Boolean getPrefer()
Return prefer, ornullif it is not present.Indicates whether this server should be preferred or not.- Returns:
Booleanprefer, ornullif it is not present.
-
requirePrefer
default @NonNull Boolean requirePrefer()
Return prefer, guaranteed to be non-null.Indicates whether this server should be preferred or not.- Returns:
Booleanprefer, guaranteed to be non-null.- Throws:
NoSuchElementException- if prefer is not present
-
-