Class BaSyxDeploymentRecipe

java.lang.Object
de.iip_ecosphere.platform.support.aas.basyx2.common.BaSyxDeploymentRecipe
All Implemented Interfaces:
de.iip_ecosphere.platform.support.aas.CorsEnabledRecipe, de.iip_ecosphere.platform.support.aas.DeploymentRecipe

public class BaSyxDeploymentRecipe extends Object implements de.iip_ecosphere.platform.support.aas.DeploymentRecipe
An initial BaSyx-specific deployment builder.
Author:
Holger Eichelberger, SSE
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    private class 
    Implements the immediate deployment recipe.
    private class 
    Implements the registry deployment recipe.

    Nested classes/interfaces inherited from interface de.iip_ecosphere.platform.support.aas.DeploymentRecipe

    de.iip_ecosphere.platform.support.aas.DeploymentRecipe.ImmediateDeploymentRecipe, de.iip_ecosphere.platform.support.aas.DeploymentRecipe.RegistryDeploymentRecipe
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private de.iip_ecosphere.platform.support.aas.SetupSpec
     

    Fields inherited from interface de.iip_ecosphere.platform.support.aas.DeploymentRecipe

    ANY_CORS_ORIGIN
  • Constructor Summary

    Constructors
    Constructor
    Description
    BaSyxDeploymentRecipe(de.iip_ecosphere.platform.support.aas.SetupSpec spec)
    Creates a deployment builder.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected de.iip_ecosphere.platform.support.aas.AasServer
    createImmediateDeploymentServer(de.iip_ecosphere.platform.support.aas.SetupSpec spec, List<de.iip_ecosphere.platform.support.function.IORunnable> actions, String... options)
    Creates a server instance for immediate deployment.
    protected de.iip_ecosphere.platform.support.aas.AasServer
    createRegistryDeploymentServer(de.iip_ecosphere.platform.support.aas.SetupSpec spec, String... options)
    Creates a server instance for registry-based deployment.
    static void
    deploy(de.iip_ecosphere.platform.support.aas.SetupSpec spec, de.iip_ecosphere.platform.support.aas.Aas aas)
    Creates a new BaSyx AAS server.
    de.iip_ecosphere.platform.support.aas.DeploymentRecipe.ImmediateDeploymentRecipe
     
    de.iip_ecosphere.platform.support.aas.DeploymentRecipe.RegistryDeploymentRecipe
    forRegistry(de.iip_ecosphere.platform.support.Endpoint aasRegistry, de.iip_ecosphere.platform.support.Endpoint smRegistry)
     
    de.iip_ecosphere.platform.support.aas.DeploymentRecipe
    setAccessControlAllowOrigin(String accessControlAllowOrigin)
     
    de.iip_ecosphere.platform.support.aas.DeploymentRecipe
    setBearerTokenAuthenticationConfiguration(String issuerUri, String jwkSetUri, String requiredAud)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface de.iip_ecosphere.platform.support.aas.DeploymentRecipe

    forRegistry
  • Field Details

    • setupSpec

      private de.iip_ecosphere.platform.support.aas.SetupSpec setupSpec
  • Constructor Details

    • BaSyxDeploymentRecipe

      public BaSyxDeploymentRecipe(de.iip_ecosphere.platform.support.aas.SetupSpec spec)
      Creates a deployment builder.
      Parameters:
      spec - the setup specification
  • Method Details

    • createImmediateDeploymentServer

      protected de.iip_ecosphere.platform.support.aas.AasServer createImmediateDeploymentServer(de.iip_ecosphere.platform.support.aas.SetupSpec spec, List<de.iip_ecosphere.platform.support.function.IORunnable> actions, String... options)
      Creates a server instance for immediate deployment.
      Parameters:
      spec - the setup specification
      options - the startup options
      Returns:
      the instance
    • createRegistryDeploymentServer

      protected de.iip_ecosphere.platform.support.aas.AasServer createRegistryDeploymentServer(de.iip_ecosphere.platform.support.aas.SetupSpec spec, String... options)
      Creates a server instance for registry-based deployment.
      Parameters:
      spec - the setup specification
      options - the startup options
      Returns:
      the instance
    • setAccessControlAllowOrigin

      public de.iip_ecosphere.platform.support.aas.DeploymentRecipe setAccessControlAllowOrigin(String accessControlAllowOrigin)
      Specified by:
      setAccessControlAllowOrigin in interface de.iip_ecosphere.platform.support.aas.CorsEnabledRecipe
      Specified by:
      setAccessControlAllowOrigin in interface de.iip_ecosphere.platform.support.aas.DeploymentRecipe
    • setBearerTokenAuthenticationConfiguration

      public de.iip_ecosphere.platform.support.aas.DeploymentRecipe setBearerTokenAuthenticationConfiguration(String issuerUri, String jwkSetUri, String requiredAud) throws IllegalArgumentException
      Specified by:
      setBearerTokenAuthenticationConfiguration in interface de.iip_ecosphere.platform.support.aas.DeploymentRecipe
      Throws:
      IllegalArgumentException
    • forRegistry

      public de.iip_ecosphere.platform.support.aas.DeploymentRecipe.ImmediateDeploymentRecipe forRegistry()
      Specified by:
      forRegistry in interface de.iip_ecosphere.platform.support.aas.DeploymentRecipe
    • forRegistry

      public de.iip_ecosphere.platform.support.aas.DeploymentRecipe.RegistryDeploymentRecipe forRegistry(de.iip_ecosphere.platform.support.Endpoint aasRegistry, de.iip_ecosphere.platform.support.Endpoint smRegistry)
      Specified by:
      forRegistry in interface de.iip_ecosphere.platform.support.aas.DeploymentRecipe
    • deploy

      public static void deploy(de.iip_ecosphere.platform.support.aas.SetupSpec spec, de.iip_ecosphere.platform.support.aas.Aas aas) throws IOException
      Creates a new BaSyx AAS server.
      Parameters:
      spec - the setup specification
      aas - the AAS
      Throws:
      IOException - if the deployment cannot be executed, e.g. due to permission issues