java.lang.Object
de.iip_ecosphere.platform.support.setup.AbstractSetup
de.iip_ecosphere.platform.support.iip_aas.config.RuntimeSetup
All Implemented Interfaces:
de.iip_ecosphere.platform.support.setup.PluginsSetup

public class RuntimeSetup extends de.iip_ecosphere.platform.support.setup.AbstractSetup
Runtime information produced, stored, consumed by the platform.
Author:
Holger Eichelberger, SSE
  • Field Details

    • instance

      private static RuntimeSetup instance
    • aasRegistry

      private String aasRegistry
    • smRegistry

      private String smRegistry
    • aasServer

      private String aasServer
    • smServer

      private String smServer
    • conceptRepository

      private String conceptRepository
    • discovery

      private String discovery
  • Constructor Details

    • RuntimeSetup

      public RuntimeSetup()
  • Method Details

    • getAasRegistry

      public String getAasRegistry()
      Returns the AAS registry URI.
      Returns:
      the registry URI (may be null for unknown)
    • setAasRegistry

      public void setAasRegistry(String aasRegistry)
      Defines the AAS registry URI. [yaml]
      Parameters:
      aasRegistry - the AAS registry URI to set
    • getSubmodelRegistry

      public String getSubmodelRegistry()
      Returns the AAS registry URI.
      Returns:
      the registry URI (may be null for unknown)
    • setSubmodelRegistry

      public void setSubmodelRegistry(String smRegistry)
      Defines the AAS registry URI. [yaml]
      Parameters:
      smRegistry - the AAS registry URI to set
    • getAasServer

      public String getAasServer()
      Returns the AAS server URI.
      Returns:
      the AAS server URI (may be null for unknown)
    • setAasServer

      public void setAasServer(String aasServer)
      Defines the AAS server URI. [yaml]
      Parameters:
      aasServer - the aasServer URI to set
    • getSubmodelServer

      public String getSubmodelServer()
      Returns the AAS server URI.
      Returns:
      the AAS server URI (may be null for unknown)
    • setSubmodelServer

      public void setSubmodelServer(String smServer)
      Defines the AAS server URI. [yaml]
      Parameters:
      smServer - the server URI to set
    • getConceptRepository

      public String getConceptRepository()
      Returns the concept repository URI.
      Returns:
      the concept repository URI (may be null for unknown)
    • setConceptRepository

      public void setConceptRepository(String conceptRepository)
      Defines the concept repository URI. [yaml]
      Parameters:
      conceptRepository - the concept repository URI to set
    • getDiscovery

      public String getDiscovery()
      Returns the AAS discovery URI.
      Returns:
      the AAS discovery URI (may be null for unknown)
    • setDiscovery

      public void setDiscovery(String discovery)
      Defines the AAS discovery URI. [yaml]
      Parameters:
      discovery - the discovery URI to set
    • getFile

      public static File getFile()
      Returns the default location for the runtime setup file.
      Returns:
      the location
    • store

      public void store()
      Stores this runtime setup to getFile().
    • clear

      public static void clear()
      Clears the instance. [testing]
    • load

      public static RuntimeSetup load()
      Loads the runtime setup from getFile().
      Returns:
      the runtime setup, may be a default instance
    • load

      public static RuntimeSetup load(Supplier<RuntimeSetup> onFailure, boolean logOnFailure)
      Loads the runtime setup from getFile().
      Parameters:
      onFailure - supplies the instance to be returned in case of a failure
      logOnFailure - if failures shall be logged
      Returns:
      the runtime setup, may be a default instance