Class ServiceSetup
java.lang.Object
de.iip_ecosphere.platform.services.ServiceSetup
Basic Yaml configuration options.
- Author:
- Holger Eichelberger, SSE
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate de.iip_ecosphere.platform.support.iip_aas.AasPartRegistry.AasSetupstatic final Stringprivate de.iip_ecosphere.platform.support.net.NetworkManagerSetupprivate Stringstatic final Stringprivate Stringprivate de.iip_ecosphere.platform.transport.connectors.TransportSetup -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionde.iip_ecosphere.platform.support.iip_aas.AasPartRegistry.AasSetupgetAas()Returns the AAS setup.de.iip_ecosphere.platform.support.net.NetworkManagerSetupReturns the network manager setup.Returns the (parent) folder where the oktoflow plugins are located (the folder itself or by default its sub-folders "plugins" or "oktoPlugins").Returns additional global service command arguments, e.g., for testing.Returns the service administration protocol.Returns the supported App Ids.de.iip_ecosphere.platform.transport.connectors.TransportSetupReturns the transport setup.Tries to read the supported App ids fromPROPERTY_SUPPORTED_APPIDSas environment variable or java system property.voidsetAas(de.iip_ecosphere.platform.support.iip_aas.AasPartRegistry.AasSetup aas) Defines the AAS setup.voidsetNetMgr(de.iip_ecosphere.platform.support.net.NetworkManagerSetup netMgr) Defines the network manager setup.voidsetPluginsFolder(String pluginsFolder) Changes the (parent) folder where the oktoflow plugins are located.voidsetPluginsFolderFile(File pluginsFolder) Changes the (parent) folder where the oktoflow plugins are located.voidsetServiceCmdArgs(List<String> serviceCmdArgs) Additional global service command arguments, e.g., for testing.voidsetServiceProtocol(String serviceProtocol) Defines the service administration protocol.voidsetSupportedAppIds(List<String> supportedAppIds) Changes the supported App Ids.voidsetTransport(de.iip_ecosphere.platform.transport.connectors.TransportSetup transport) Defines the transport setup.
-
Field Details
-
ENV_SUPPORTED_APPIDS
- See Also:
-
PROPERTY_SUPPORTED_APPIDS
- See Also:
-
aas
private de.iip_ecosphere.platform.support.iip_aas.AasPartRegistry.AasSetup aas -
serviceProtocol
-
transport
private de.iip_ecosphere.platform.transport.connectors.TransportSetup transport -
netMgr
private de.iip_ecosphere.platform.support.net.NetworkManagerSetup netMgr -
serviceCmdArgs
-
supportedAppIds
-
pluginsFolder
-
-
Constructor Details
-
ServiceSetup
public ServiceSetup()
-
-
Method Details
-
initialSupportedAppIds
Tries to read the supported App ids fromPROPERTY_SUPPORTED_APPIDSas environment variable or java system property.- Returns:
- the initial App ids, may be empty
-
setPluginsFolder
Changes the (parent) folder where the oktoflow plugins are located. [yaml convention]- Parameters:
pluginsFolder- the plugins folder
-
setPluginsFolderFile
Changes the (parent) folder where the oktoflow plugins are located. [yaml convention]- Parameters:
pluginsFolder- the plugins folder
-
getPluginsFolder
Returns the (parent) folder where the oktoflow plugins are located (the folder itself or by default its sub-folders "plugins" or "oktoPlugins").- Returns:
- the folder, by default taken from
AbstractSetup.PARAM_PLUGINS(env or sys property), fallback "plugins"
-
getAas
public de.iip_ecosphere.platform.support.iip_aas.AasPartRegistry.AasSetup getAas()Returns the AAS setup.- Returns:
- the AAs setup
-
getServiceProtocol
Returns the service administration protocol.- Returns:
- the service administration protocol (see
AasFactory.getProtocols()
-
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
-
getServiceCmdArgs
Returns additional global service command arguments, e.g., for testing.- Returns:
- additional service command arguments
-
getSupportedAppIds
Returns the supported App Ids.- Returns:
- the supported App Ids, may be empty for no restriction
-
setAas
public void setAas(de.iip_ecosphere.platform.support.iip_aas.AasPartRegistry.AasSetup aas) Defines the AAS setup. [required by snakeyaml]- Parameters:
aas- the AAS setup
-
setServiceProtocol
Defines the service administration protocol. [required by snakeyaml]- Parameters:
serviceProtocol- the service administration protocol (seeAasFactory.getProtocols()
-
setTransport
public void setTransport(de.iip_ecosphere.platform.transport.connectors.TransportSetup transport) Defines the transport setup. [required by snakeyaml]- Parameters:
transport- the transport setup
-
setNetMgr
public void setNetMgr(de.iip_ecosphere.platform.support.net.NetworkManagerSetup netMgr) Defines the network manager setup. [required snakeyaml]- Parameters:
netMgr- the network manager setup
-
setServiceCmdArgs
Additional global service command arguments, e.g., for testing. [snakeyaml]- Parameters:
serviceCmdArgs- the additional command arguments
-
setSupportedAppIds
Changes the supported App Ids. [snakeyaml]- Parameters:
supportedAppIds- the supported App Ids, may be empty for no restriction
-