public class NetworkInterface
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
NetworkInterface.Builder |
Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
Constructor and Description |
---|
NetworkInterface() |
NetworkInterface(java.lang.String address,
java.lang.String broadcast,
java.lang.String macAddress,
java.lang.Long mtu,
java.lang.String name,
java.lang.String netmask,
java.lang.String status,
java.lang.String type,
java.lang.Long virtualNetworkTag,
Optional<java.lang.Boolean> namespace) |
Modifier and Type | Method and Description |
---|---|
NetworkInterface.Builder |
asBuilder() |
static NetworkInterface.Builder |
builder() |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getAddress()
IP address of the network.
|
java.lang.String |
getBroadcast()
Address of NTP broadcast.
|
java.lang.String |
getMacAddress()
Address used to configure the interface.
|
java.lang.Long |
getMtu()
Packet size on the network interface.
|
java.lang.String |
getName()
Name of the network interface.
|
Optional<java.lang.Boolean> |
getNamespace() |
java.lang.String |
getNetmask()
Netmask for the network interface.
|
java.lang.String |
getStatus()
Status of the network.
|
java.lang.String |
getType()
The type of network, ie, BondMaster.
|
java.lang.Long |
getVirtualNetworkTag()
Virtual Network Tag if on virtual network.
|
int |
hashCode() |
void |
setAddress(java.lang.String address) |
void |
setBroadcast(java.lang.String broadcast) |
void |
setMacAddress(java.lang.String macAddress) |
void |
setMtu(java.lang.Long mtu) |
void |
setName(java.lang.String name) |
void |
setNamespace(Optional<java.lang.Boolean> namespace) |
void |
setNetmask(java.lang.String netmask) |
void |
setStatus(java.lang.String status) |
void |
setType(java.lang.String type) |
void |
setVirtualNetworkTag(java.lang.Long virtualNetworkTag) |
java.util.Map<java.lang.String,java.lang.Object> |
toMap() |
java.lang.String |
toString() |
public static final long serialVersionUID
@Since(value="7.0") public NetworkInterface(java.lang.String address, java.lang.String broadcast, java.lang.String macAddress, java.lang.Long mtu, java.lang.String name, java.lang.String netmask, java.lang.String status, java.lang.String type, java.lang.Long virtualNetworkTag, Optional<java.lang.Boolean> namespace)
public java.lang.String getAddress()
public void setAddress(java.lang.String address)
public java.lang.String getBroadcast()
public void setBroadcast(java.lang.String broadcast)
public java.lang.String getMacAddress()
public void setMacAddress(java.lang.String macAddress)
public java.lang.Long getMtu()
public void setMtu(java.lang.Long mtu)
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getNetmask()
public void setNetmask(java.lang.String netmask)
public java.lang.String getStatus()
public void setStatus(java.lang.String status)
public java.lang.String getType()
public void setType(java.lang.String type)
public java.lang.Long getVirtualNetworkTag()
public void setVirtualNetworkTag(java.lang.Long virtualNetworkTag)
public Optional<java.lang.Boolean> getNamespace()
public void setNamespace(Optional<java.lang.Boolean> namespace)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.util.Map<java.lang.String,java.lang.Object> toMap()
public java.lang.String toString()
toString
in class java.lang.Object
public static NetworkInterface.Builder builder()
public final NetworkInterface.Builder asBuilder()