T
- IPv4 or IPv6 address@ProviderType public abstract class NetConfigIP<T extends IPAddress> extends java.lang.Object implements NetConfig
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
T |
getAddress()
Returns the address that should be statically assigned to the interface.
|
java.util.List<T> |
getDnsServers()
Returns the list of Name Servers to be associated to the interface.
|
java.util.List<java.lang.String> |
getDomains()
Returns the list of DNS domains to be associated to the interface.
|
T |
getGateway()
Returns the address of the gateway to be used for the interface
|
short |
getNetworkPrefixLength()
Return the prefix to be used for the network interface
|
java.util.Map<java.lang.String,java.lang.Object> |
getProperties() |
NetInterfaceStatus |
getStatus()
Return the NetInterfaceStatus of this configuration
|
T |
getSubnetMask()
Return the prefix to be used for the network interface
|
int |
hashCode() |
boolean |
isAutoConnect() |
boolean |
isDhcp() |
boolean |
isValid()
Checks whether or not this configuration is valid.
|
void |
setAddress(T address)
Sets the static address to be assigned to the interface.
|
void |
setAutoConnect(boolean autoConnect) |
void |
setDhcp(boolean dhcp)
Sets whether of not this configuration should be a dhcp client.
|
void |
setDnsServers(java.util.List<T> dnsServers)
Sets the list of Name Servers to be associated to the interface.
|
void |
setDomains(java.util.List<java.lang.String> domains)
Sets the list of DNS domains to be associated to the interface.
|
void |
setGateway(T gateway)
Sets the gateway to be used for the interface
|
void |
setNetworkPrefixLength(short networkPrefixLength)
Sets the prefix length to be used for the network interface
|
void |
setProperties(java.util.Map<java.lang.String,java.lang.Object> properties) |
void |
setStatus(NetInterfaceStatus status)
Sets the NetInterfaceStatus to be used for the network interface
|
void |
setSubnetMask(T subnetMask)
Sets the subnet mask to be used for the network interface
|
java.lang.String |
toString() |
public NetInterfaceStatus getStatus()
public void setStatus(NetInterfaceStatus status)
status
- public boolean isAutoConnect()
public void setAutoConnect(boolean autoConnect)
public boolean isDhcp()
public void setDhcp(boolean dhcp)
dhcp
- whether or not dhcp client mode should be usedpublic T getAddress()
public void setAddress(T address) throws KuraException
address
- - address to be statically assigned to the interfaceKuraException
public short getNetworkPrefixLength()
public void setNetworkPrefixLength(short networkPrefixLength) throws KuraException
networkPrefixLength
- KuraException
public T getSubnetMask()
public void setSubnetMask(T subnetMask) throws KuraException
subnetMask
- KuraException
public T getGateway()
public void setGateway(T gateway)
gateway
- public java.util.List<T> getDnsServers()
public void setDnsServers(java.util.List<T> dnsServers)
public java.util.List<java.lang.String> getDomains()
public void setDomains(java.util.List<java.lang.String> domains)
domains
- public java.util.Map<java.lang.String,java.lang.Object> getProperties()
public void setProperties(java.util.Map<java.lang.String,java.lang.Object> properties)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public boolean isValid()
NetConfig
public java.lang.String toString()
toString
in class java.lang.Object