com.eurotech.framework.core.net
Class NetworkConfiguration

java.lang.Object
  extended by com.eurotech.framework.core.net.NetworkConfiguration

public class NetworkConfiguration
extends Object


Constructor Summary
NetworkConfiguration()
           
NetworkConfiguration(Map<String,Object> properties)
          Constructor for create a completely new NetComponentConfiguration based on a set of properties
 
Method Summary
 void accept(NetworkConfigurationVisitor visitor)
           
 void addNetConfig(String interfaceName, NetInterfaceType netInterfaceType, NetConfig netConfig)
           
 void addNetInterfaceConfig(NetInterfaceConfig<? extends NetInterfaceAddressConfig> netInterfaceConfig)
           
 Map<String,Object> getConfigurationProperties()
           
 List<String> getModifiedInterfaceNames()
           
 NetInterfaceConfig<? extends NetInterfaceAddressConfig> getNetInterfaceConfig(String interfaceName)
           
 List<NetInterfaceConfig<? extends NetInterfaceAddressConfig>> getNetInterfaceConfigs()
           
 boolean isValid()
           
 void setModifiedInterfaceNames(List<String> modifiedInterfaceNames)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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
Method Detail

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.