@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 interfaceId)
Return an optional
NetworkInterfaceStatus of the given network
interface selected by its id. |
java.util.Optional<NetworkInterfaceStatus> |
getNetworkStatus(java.lang.String interfaceId,
boolean recompute)
Return an optional
NetworkInterfaceStatus of the given network
interface selected by its id.For Ethernet and WiFi interfaces, the
identifier is typically the interface name. |
java.util.Optional<NetworkInterfaceStatus> getNetworkStatus(java.lang.String interfaceId) 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.interfaceId - the identifier of the network interfaceNetworkInterfaceStatusKuraException - when an error occurs while retrieving the status of the
given interfacejava.util.Optional<NetworkInterfaceStatus> getNetworkStatus(java.lang.String interfaceId, boolean recompute) 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.interfaceId - the identifier of the network interfacerecompute - If set to true, the NetworkStatusService will perform some additional expensive operations (like AP
scanning) to ensure the status returned by the method is up to date. If set to false, it will return
the status as returned by the network configuration provider.NetworkInterfaceStatusKuraException - when an error occurs while retrieving the status of the
given interfacejava.util.List<java.lang.String> getInterfaceIds()
throws KuraException
KuraException