@ProviderType
public interface NetworkStatusService
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
getInterfaceIds()
Return the identifiers of the network interfaces detected in the
system.
|
java.util.Optional<NetworkInterfaceStatus> |
getNetworkStatus(java.lang.String interfaceName)
Return an optional
NetworkInterfaceStatus of the given network
interface selected by its id. |
java.util.Optional<NetworkInterfaceStatus> getNetworkStatus(java.lang.String interfaceName) throws KuraException
NetworkInterfaceStatus of the given network
interface selected by its id. For Ethernet and WiFi interfaces, the
identifier is typically the interface name. For the modems, instead,
it is the usb or pci path.
If the interface doesn't exist, an Empty value is returned.id - the identifier of the network interfaceNetworkInterfaceStatusKuraException - when an error occurs while retrieving the status of the
given interfacejava.util.List<java.lang.String> getInterfaceIds()
throws KuraException
KuraException