Class BaSyxDeploymentRecipe
java.lang.Object
de.iip_ecosphere.platform.support.aas.basyx.BaSyxDeploymentRecipe
- All Implemented Interfaces:
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 static classBaSyxDeploymentRecipe.BaSyxAasDescriptorAn internal AAS deployment descriptor.private static classBaSyxDeploymentRecipe.BaSyxAbstractAasServerImplements theAasServerinstance.private static classBaSyxDeploymentRecipe.BaSyxImmediateDeploymentAasServerImplements theAasServerinstance.private classBaSyxDeploymentRecipe.BaSyxImmediateDeploymentRecipeImplements the immediate deployment recipe.private static classBaSyxDeploymentRecipe.BaSyxRegistryDeploymentAasServerImplements theAasServerinstance.private classBaSyxDeploymentRecipe.BaSyxRegistryDeploymentRecipeImplements the registry deployment recipe.private static classBaSyxDeploymentRecipe.DeploymentSpecStores basic common deployment information. -
Field Summary
Fields Modifier and Type Field Description private BaSyxDeploymentRecipe.DeploymentSpecdeploymentSpec -
Constructor Summary
Constructors Constructor Description BaSyxDeploymentRecipe(de.iip_ecosphere.platform.support.Endpoint endpoint)Creates a deployment builder with root/empty document base path.BaSyxDeploymentRecipe(String host, int port, String contextPath, String docBasePath)Creates a deployment builder. -
Method Summary
Modifier and Type Method Description de.iip_ecosphere.platform.support.aas.DeploymentRecipe.ImmediateDeploymentRecipeaddInMemoryRegistry(String regEndpoint)static de.iip_ecosphere.platform.support.ServercreateControlComponent(HashMap<String,Object> cc, int port)This method creates a control component.static de.iip_ecosphere.platform.support.ServercreateControlComponent(org.eclipse.basyx.vab.modelprovider.generic.VABModelProvider provider, int port)This method creates a control component for a model provider.(package private) static voiddeploy(BaSyxDeploymentRecipe.DeploymentSpec deploymentSpec, de.iip_ecosphere.platform.support.aas.Aas aas)Creates a new BaSyx AAS server.de.iip_ecosphere.platform.support.aas.DeploymentRecipe.RegistryDeploymentRecipesetRegistryUrl(de.iip_ecosphere.platform.support.Endpoint endpoint)
-
Field Details
-
Constructor Details
-
BaSyxDeploymentRecipe
BaSyxDeploymentRecipe(de.iip_ecosphere.platform.support.Endpoint endpoint)Creates a deployment builder with root/empty document base path.- Parameters:
endpoint- the endpoint to create the deployment context for
-
BaSyxDeploymentRecipe
Creates a deployment builder.- Parameters:
host- the target hostport- the target IP portcontextPath- the context base path (may be empty, otherwise shall start with a "/")docBasePath- the documents base path (may be empty, otherwise shall start with a "/")
-
-
Method Details
-
addInMemoryRegistry
public de.iip_ecosphere.platform.support.aas.DeploymentRecipe.ImmediateDeploymentRecipe addInMemoryRegistry(String regEndpoint)- Specified by:
addInMemoryRegistryin interfacede.iip_ecosphere.platform.support.aas.DeploymentRecipe
-
setRegistryUrl
public de.iip_ecosphere.platform.support.aas.DeploymentRecipe.RegistryDeploymentRecipe setRegistryUrl(de.iip_ecosphere.platform.support.Endpoint endpoint)- Specified by:
setRegistryUrlin interfacede.iip_ecosphere.platform.support.aas.DeploymentRecipe
-
deploy
static void deploy(BaSyxDeploymentRecipe.DeploymentSpec deploymentSpec, de.iip_ecosphere.platform.support.aas.Aas aas)Creates a new BaSyx AAS server.- Parameters:
deploymentSpec- the deployment set instanceaas- the AAS
-
createControlComponent
public static de.iip_ecosphere.platform.support.Server createControlComponent(HashMap<String,Object> cc, int port)This method creates a control component.- Parameters:
cc- the control component (usually hash-based model provider)port- the port to run on- Returns:
- the server instance
- See Also:
createControlComponent(VABModelProvider, int)
-
createControlComponent
public static de.iip_ecosphere.platform.support.Server createControlComponent(org.eclipse.basyx.vab.modelprovider.generic.VABModelProvider provider, int port)This method creates a control component for a model provider.- Parameters:
provider- the model providerport- the port to run on- Returns:
- the server instance
-