Class EcsSetup
java.lang.Object
de.iip_ecosphere.platform.support.setup.AbstractSetup
de.iip_ecosphere.platform.support.iip_aas.AasBasedSetup
de.iip_ecosphere.platform.ecsRuntime.EcsSetup
public class EcsSetup
extends de.iip_ecosphere.platform.support.iip_aas.AasBasedSetup
ECS runtime setup (poor man's spring approach). Implementing components shall extend this class and add
their specific configuration settings. Subclasses must have a no-arg constructor and getters/setters for all
configuration values.
- Author:
- Holger Eichelberger, SSE
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classCommon settings for a container manager setup. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate intprivate de.iip_ecosphere.platform.support.net.NetworkManagerSetupprivate de.iip_ecosphere.platform.transport.connectors.TransportSetupFields inherited from class de.iip_ecosphere.platform.support.setup.AbstractSetup
DEFAULT_FNAME, DEFAULT_NAME, DEFAULT_OVERRIDE_FNAME, PARAM_PLUGINS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns artifact file name infixes that shall be tried before loading a non-infixed default artifact, e.g., a container.booleanReturns whether automatic on/offboarding is enabled.intReturns the monitoring update period.de.iip_ecosphere.platform.support.net.NetworkManagerSetupReturns the network manager setup.de.iip_ecosphere.platform.transport.connectors.TransportSetupReturns the transport setup.static EcsSetupReads aEcsSetupinstance fromAbstractSetup.DEFAULT_FNAMEin the root folder of the jar/classpath.static <C extends EcsSetup>
CreadConfiguration(Class<C> cls) Reads aEcsSetupinstance fromAbstractSetup.DEFAULT_FNAMEin the root folder of the jar/classpath.voidsetArtifactInfixes(List<String> artifactInfixes) Defines artifact file name infixes that shall be tried before loading a non-infixed default artifact, e.g., a container.voidsetAutoOnOffboarding(boolean implicitOnOffboarding) Changes the automatic on/offboarding behavior.voidsetMonitoringUpdatePeriod(int monitoringUpdatePeriod) Changes the monitoring update period.voidsetNetMgr(de.iip_ecosphere.platform.support.net.NetworkManagerSetup netMgr) Defines the network manager setup.voidsetTransport(de.iip_ecosphere.platform.transport.connectors.TransportSetup transport) Defines the transport setup.Methods inherited from class de.iip_ecosphere.platform.support.iip_aas.AasBasedSetup
getAas, setAasMethods inherited from class de.iip_ecosphere.platform.support.setup.AbstractSetup
getDefaultFileName, getPluginsFolder, isNotEmpty, readFromYaml, readFromYaml, readFromYaml, readFromYaml, readFromYaml, readFromYamlWithPath, readFromYamlWithPath, readFromYamlWithPath, readFromYamlWithPath, readMappingFromYaml, readMappingFromYaml, setDefaultFileName, setPluginsFolder, setPluginsFolderFile
-
Field Details
-
transport
private de.iip_ecosphere.platform.transport.connectors.TransportSetup transport -
netMgr
private de.iip_ecosphere.platform.support.net.NetworkManagerSetup netMgr -
monitoringUpdatePeriod
private int monitoringUpdatePeriod -
autoOnOffboarding
private boolean autoOnOffboarding -
artifactInfixes
-
-
Constructor Details
-
EcsSetup
public EcsSetup()
-
-
Method Details
-
getMonitoringUpdatePeriod
public int getMonitoringUpdatePeriod()Returns the monitoring update period.- Returns:
- the monitoring update period in ms
-
getTransport
public de.iip_ecosphere.platform.transport.connectors.TransportSetup getTransport()Returns the transport setup.- Returns:
- the transport setup
-
getNetMgr
public de.iip_ecosphere.platform.support.net.NetworkManagerSetup getNetMgr()Returns the network manager setup.- Returns:
- the network manager setup
-
getAutoOnOffboarding
public boolean getAutoOnOffboarding()Returns whether automatic on/offboarding is enabled.- Returns:
trueon/offboard always, iffalseexplicit on/offboarding is required
-
getArtifactInfixes
Returns artifact file name infixes that shall be tried before loading a non-infixed default artifact, e.g., a container.- Returns:
- optional artifact infixes, may be empty
-
setMonitoringUpdatePeriod
public void setMonitoringUpdatePeriod(int monitoringUpdatePeriod) Changes the monitoring update period. [snakeyaml]- Parameters:
monitoringUpdatePeriod- in ms, values below 200 are turned to 200
-
setTransport
public void setTransport(de.iip_ecosphere.platform.transport.connectors.TransportSetup transport) Defines the transport setup. [snakeyaml]- Parameters:
transport- the transport setup
-
setNetMgr
public void setNetMgr(de.iip_ecosphere.platform.support.net.NetworkManagerSetup netMgr) Defines the network manager setup. [snakeyaml]- Parameters:
netMgr- the network manager setup
-
setAutoOnOffboarding
public void setAutoOnOffboarding(boolean implicitOnOffboarding) Changes the automatic on/offboarding behavior. [snakeyaml]- Parameters:
implicitOnOffboarding- iftrueon/offboard always, iffalseexplicit on/offboarding is required
-
setArtifactInfixes
Defines artifact file name infixes that shall be tried before loading a non-infixed default artifact, e.g., a container. [snakeyaml]- Parameters:
artifactInfixes- optional artifact infixes, may be empty
-
readConfiguration
Reads aEcsSetupinstance fromAbstractSetup.DEFAULT_FNAMEin the root folder of the jar/classpath.- Type Parameters:
C- the specific type of configuration to read (extended fromConfiguration}- Parameters:
cls- the class of configuration to read- Returns:
- the configuration instance
- Throws:
IOException- if the setup cannot be read- See Also:
-
readConfiguration
Reads aEcsSetupinstance fromAbstractSetup.DEFAULT_FNAMEin the root folder of the jar/classpath.- Returns:
- the configuration instance
- Throws:
IOException- if the setup cannot be read- See Also:
-