Interface LoggingRemoteConfig
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>,org.opendaylight.yangtools.yang.binding.BindingObject,org.opendaylight.yangtools.yang.binding.DataContainer,org.opendaylight.yangtools.yang.binding.DataObject
@Generated("mdsal-binding-generator")
public interface LoggingRemoteConfig
extends org.opendaylight.yangtools.yang.binding.DataObject
Configuration data for remote log servers
This class represents the following YANG schema fragment defined in module openconfig-system-logging
grouping logging-remote-config {
leaf host {
type oc-inet:host;
}
leaf source-address {
type oc-inet:ip-address;
}
leaf remote-port {
type oc-inet:port-number;
default 514;
}
}
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final @NonNull org.opendaylight.yangtools.yang.common.QNameYANG identifier of the statement represented by this class. -
Method Summary
Modifier and TypeMethodDescriptiongetHost()Return host, ornullif it is not present.Return remotePort, ornullif it is not present.Return sourceAddress, ornullif it is not present.Class<? extends LoggingRemoteConfig>default @NonNull HostReturn host, guaranteed to be non-null.default @NonNull PortNumberReturn remotePort, guaranteed to be non-null.default @NonNull IpAddressReturn sourceAddress, guaranteed to be non-null.
-
Field Details
-
QNAME
static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAMEYANG identifier of the statement represented by this class.
-
-
Method Details
-
implementedInterface
Class<? extends LoggingRemoteConfig> implementedInterface()- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>- Specified by:
implementedInterfacein interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
getHost
Host getHost()Return host, ornullif it is not present.IP address or hostname of the remote log server- Returns:
Hosthost, ornullif it is not present.
-
requireHost
Return host, guaranteed to be non-null.IP address or hostname of the remote log server- Returns:
Hosthost, guaranteed to be non-null.- Throws:
NoSuchElementException- if host is not present
-
getSourceAddress
IpAddress getSourceAddress()Return sourceAddress, ornullif it is not present.Source IP address for packets to the log server- Returns:
IpAddresssourceAddress, ornullif it is not present.
-
requireSourceAddress
Return sourceAddress, guaranteed to be non-null.Source IP address for packets to the log server- Returns:
IpAddresssourceAddress, guaranteed to be non-null.- Throws:
NoSuchElementException- if sourceAddress is not present
-
getRemotePort
PortNumber getRemotePort()Return remotePort, ornullif it is not present.Sets the destination port number for syslog UDP messages to the server. The default for syslog is 514.- Returns:
PortNumberremotePort, ornullif it is not present.
-
requireRemotePort
Return remotePort, guaranteed to be non-null.Sets the destination port number for syslog UDP messages to the server. The default for syslog is 514.- Returns:
PortNumberremotePort, guaranteed to be non-null.- Throws:
NoSuchElementException- if remotePort is not present
-