com.eurotech.framework.core.net
Class NetworkConfiguration
java.lang.Object
com.eurotech.framework.core.net.NetworkConfiguration
public class NetworkConfiguration
- extends Object
NetworkConfiguration
public NetworkConfiguration()
NetworkConfiguration
public NetworkConfiguration(Map<String,Object> properties)
throws UnknownHostException,
EsfException
- Constructor for create a completely new NetComponentConfiguration based on a set of properties
- Parameters:
properties
- The properties that represent the new configuration
- Throws:
UnknownHostException
- If some hostnames can not be resolved
EsfException
- It there is an internal error
setModifiedInterfaceNames
public void setModifiedInterfaceNames(List<String> modifiedInterfaceNames)
getModifiedInterfaceNames
public List<String> getModifiedInterfaceNames()
accept
public void accept(NetworkConfigurationVisitor visitor)
throws EsfException
- Throws:
EsfException
addNetInterfaceConfig
public void addNetInterfaceConfig(NetInterfaceConfig<? extends NetInterfaceAddressConfig> netInterfaceConfig)
addNetConfig
public void addNetConfig(String interfaceName,
NetInterfaceType netInterfaceType,
NetConfig netConfig)
throws EsfException
- Throws:
EsfException
toString
public String toString()
- Overrides:
toString
in class Object
getNetInterfaceConfigs
public List<NetInterfaceConfig<? extends NetInterfaceAddressConfig>> getNetInterfaceConfigs()
getNetInterfaceConfig
public NetInterfaceConfig<? extends NetInterfaceAddressConfig> getNetInterfaceConfig(String interfaceName)
getConfigurationProperties
public Map<String,Object> getConfigurationProperties()
isValid
public boolean isValid()
throws EsfException
- Throws:
EsfException
Copyright © 2013. All Rights Reserved.