Class NetworkInterfaceDetails
java.lang.Object
com.tccc.kos.core.service.network.beans.NetworkInterface
com.tccc.kos.core.service.network.beans.NetworkInterfaceDetails
Information about an available network interface.
- Version:
- 2024-05-24
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the ethernet details if the interface is an ethernet interface.Return the hardware address of the interface.Return the IPv4 settings if the interface has an IPv4 address.intgetMtu()Return the MTU of the interface.getWifi()Return the wifi details if the interface is a wifi interface.booleanReturns true if the interface is configured.voidsetConfigured(boolean configured) voidsetEthernet(EthernetDetails ethernet) voidsetHwaddress(String hwaddress) voidsetIp4settings(Ip4Settings ip4settings) voidsetMtu(int mtu) voidsetWifi(WifiDetails wifi) Methods inherited from class com.tccc.kos.core.service.network.beans.NetworkInterface
getCategory, getName, getNmdevicestate, getType, setKostype, setName, setNmdevicestate, setType
-
Constructor Details
-
NetworkInterfaceDetails
public NetworkInterfaceDetails()
-
-
Method Details
-
getHwaddress
Return the hardware address of the interface. -
getMtu
public int getMtu()Return the MTU of the interface. -
isConfigured
public boolean isConfigured()Returns true if the interface is configured. -
getEthernet
Return the ethernet details if the interface is an ethernet interface. -
getWifi
Return the wifi details if the interface is a wifi interface. -
getIp4settings
Return the IPv4 settings if the interface has an IPv4 address. -
setHwaddress
-
setMtu
public void setMtu(int mtu) -
setConfigured
public void setConfigured(boolean configured) -
setEthernet
-
setWifi
-
setIp4settings
-