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) |
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)
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.