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 Details

    • instance

      private static RuntimeSetup instance
    • aasRegistry

      private String aasRegistry
    • smRegistry

      private String smRegistry
    • aasServer

      private String aasServer
    • smServer

      private String smServer
  • 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. [snakeyaml]
      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. [snakeyaml]
      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. [snakeyaml]
      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. [snakeyaml]
      Parameters:
      smServer - the server 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