T - IPv4 or IPv6 addresspublic abstract class NetConfigIP<T extends IPAddress> extends Object implements NetConfig
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
T |
getAddress()
Returns the address that should be statically assigned to the interface.
|
List<T> |
getDnsServers()
Returns the list of Name Servers to be associated to the interface.
|
List<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
|
Map<String,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(List<T> dnsServers)
Sets the list of Name Servers to be associated to the interface.
|
void |
setDomains(List<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(Map<String,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
|
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 EsfException
address - - address to be statically assigned to the interfaceEsfExceptionpublic short getNetworkPrefixLength()
public void setNetworkPrefixLength(short networkPrefixLength)
throws EsfException
networkPrefixLength - EsfExceptionpublic T getSubnetMask()
public void setSubnetMask(T subnetMask) throws EsfException
subnetMask - EsfExceptionpublic T getGateway()
public void setGateway(T gateway)
gateway - public List<T> getDnsServers()
public void setDnsServers(List<T> dnsServers)
public List<String> getDomains()
public void setDomains(List<String> domains)
domains - public boolean isValid()
NetConfigCopyright © 2013. All Rights Reserved.