|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.eurotech.framework.net.NetConfigIP<T>
T
- IPv4 or IPv6 addresspublic abstract class NetConfigIP<T extends IPAddress>
Base class for configuration of network interfaces. The two subclasses NetConfigIP4 and NetConfigIP6 represent configurations of IPv4 and IPv6 addresses respectively.
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
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 interface
EsfException
public short getNetworkPrefixLength()
public void setNetworkPrefixLength(short networkPrefixLength) throws EsfException
networkPrefixLength
-
EsfException
public T getSubnetMask()
public void setSubnetMask(T subnetMask) throws EsfException
subnetMask
-
EsfException
public 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 Map<String,Object> getProperties()
public void setProperties(Map<String,Object> properties)
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public boolean isValid()
NetConfig
isValid
in interface NetConfig
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |