public class JavaCommandBuilder extends Object implements CommandBuilder
Constructor and Description |
---|
JavaCommandBuilder(LocalDeployerProperties properties) |
Modifier and Type | Method and Description |
---|---|
protected void |
addJavaExecutionOptions(List<String> commands,
org.springframework.cloud.deployer.spi.core.AppDeploymentRequest request) |
protected void |
addJavaOptions(List<String> commands,
Map<String,String> deploymentProperties,
LocalDeployerProperties localDeployerProperties) |
protected LocalDeployerProperties |
bindDeploymentProperties(Map<String,String> runtimeDeploymentProperties)
This will merge the deployment properties that were passed in at runtime with the deployment properties
of the Deployer instance.
|
String[] |
buildExecutionCommand(org.springframework.cloud.deployer.spi.core.AppDeploymentRequest request,
Map<String,String> appInstanceEnv,
Optional<Integer> appInstanceNumber)
Builds the execution command for an application.
|
public JavaCommandBuilder(LocalDeployerProperties properties)
public String[] buildExecutionCommand(org.springframework.cloud.deployer.spi.core.AppDeploymentRequest request, Map<String,String> appInstanceEnv, Optional<Integer> appInstanceNumber)
CommandBuilder
buildExecutionCommand
in interface CommandBuilder
request
- the request for the application to executeappInstanceEnv
- the env vars tha might be needed when building the execution commandprotected void addJavaOptions(List<String> commands, Map<String,String> deploymentProperties, LocalDeployerProperties localDeployerProperties)
protected void addJavaExecutionOptions(List<String> commands, org.springframework.cloud.deployer.spi.core.AppDeploymentRequest request)
protected LocalDeployerProperties bindDeploymentProperties(Map<String,String> runtimeDeploymentProperties)
runtimeDeploymentProperties
- deployment properties passed in at runtimeCopyright © 2021 Pivotal Software, Inc.. All rights reserved.