Class RuntimeSetup
java.lang.Object
de.iip_ecosphere.platform.support.setup.AbstractSetup
de.iip_ecosphere.platform.support.iip_aas.config.RuntimeSetup
public class RuntimeSetup
extends de.iip_ecosphere.platform.support.setup.AbstractSetup
Runtime information produced, stored, consumed by the platform.
- Author:
- Holger Eichelberger, SSE
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate Stringprivate static RuntimeSetupprivate Stringprivate StringFields 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 TypeMethodDescriptionstatic voidclear()Clears the instance.Returns the AAS registry URI.Returns the AAS server URI.static FilegetFile()Returns the default location for the runtime setup file.Returns the AAS registry URI.Returns the AAS server URI.static RuntimeSetupload()Loads the runtime setup fromgetFile().static RuntimeSetupload(Supplier<RuntimeSetup> onFailure, boolean logOnFailure) Loads the runtime setup fromgetFile().voidsetAasRegistry(String aasRegistry) Defines the AAS registry URI.voidsetAasServer(String aasServer) Defines the AAS server URI.voidsetSubmodelRegistry(String smRegistry) Defines the AAS registry URI.voidsetSubmodelServer(String smServer) Defines the AAS server URI.voidstore()Stores this runtime setup togetFile().Methods 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
-
instance
-
aasRegistry
-
smRegistry
-
aasServer
-
smServer
-
-
Constructor Details
-
RuntimeSetup
public RuntimeSetup()
-
-
Method Details
-
getAasRegistry
Returns the AAS registry URI.- Returns:
- the registry URI (may be null for unknown)
-
setAasRegistry
Defines the AAS registry URI. [snakeyaml]- Parameters:
aasRegistry- the AAS registry URI to set
-
getSubmodelRegistry
Returns the AAS registry URI.- Returns:
- the registry URI (may be null for unknown)
-
setSubmodelRegistry
Defines the AAS registry URI. [snakeyaml]- Parameters:
smRegistry- the AAS registry URI to set
-
getAasServer
Returns the AAS server URI.- Returns:
- the AAS server URI (may be null for unknown)
-
setAasServer
Defines the AAS server URI. [snakeyaml]- Parameters:
aasServer- the aasServer URI to set
-
getSubmodelServer
Returns the AAS server URI.- Returns:
- the AAS server URI (may be null for unknown)
-
setSubmodelServer
Defines the AAS server URI. [snakeyaml]- Parameters:
smServer- the server URI to set
-
getFile
Returns the default location for the runtime setup file.- Returns:
- the location
-
store
public void store()Stores this runtime setup togetFile(). -
clear
public static void clear()Clears the instance. [testing] -
load
Loads the runtime setup fromgetFile().- Returns:
- the runtime setup, may be a default instance
-
load
Loads the runtime setup fromgetFile().- Parameters:
onFailure- supplies the instance to be returned in case of a failurelogOnFailure- if failures shall be logged- Returns:
- the runtime setup, may be a default instance
-