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.
|
ProcessBuilder |
buildExecutionCommand(org.springframework.cloud.deployer.spi.core.AppDeploymentRequest request,
Map<String,String> appInstanceEnv,
String deployerId,
Optional<Integer> appInstanceNumber,
LocalDeployerProperties localDeployerProperties,
Optional<DebugAddress> debugAddressOption)
Builds the execution command for an application.
|
URL |
getBaseUrl(String deploymentId,
int index,
int port)
Compute an App unique URL over apps deployerId, instance index and computed port.
|
int |
getPortSuggestion(LocalDeployerProperties localDeployerProperties)
Allow the concrete implementation to suggests the target application port.
|
protected void |
retainEnvVars(Map<String,String> vars,
LocalDeployerProperties localDeployerProperties)
Retain the environment variable strings in the provided set indicated by
LocalDeployerProperties.getEnvVarsToInherit(). |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetJdwpOptionspublic JavaCommandBuilder(LocalDeployerProperties properties)
public int getPortSuggestion(LocalDeployerProperties localDeployerProperties)
CommandBuildergetPortSuggestion in interface CommandBuilderpublic URL getBaseUrl(String deploymentId, int index, int port)
CommandBuildergetBaseUrl in interface CommandBuilderdeploymentId - App deployment id.index - App instance index.port - App port.public ProcessBuilder buildExecutionCommand(org.springframework.cloud.deployer.spi.core.AppDeploymentRequest request, Map<String,String> appInstanceEnv, String deployerId, Optional<Integer> appInstanceNumber, LocalDeployerProperties localDeployerProperties, Optional<DebugAddress> debugAddressOption)
CommandBuilderbuildExecutionCommand in interface CommandBuilderrequest - the request for the application to execute.appInstanceEnv - the env vars tha might be needed when building the execution command.appInstanceNumber - application instance id.debugAddressOption - application remote debug address.protected void retainEnvVars(Map<String,String> vars, LocalDeployerProperties localDeployerProperties)
LocalDeployerProperties.getEnvVarsToInherit().
This assumes that the provided set can be modified.vars - set of environment variable stringslocalDeployerProperties - local deployer propertiesprotected 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 © 2023 Pivotal Software, Inc.. All rights reserved.