public interface CommandBuilder
| Modifier and Type | Method and Description |
|---|---|
ProcessBuilder |
buildExecutionCommand(org.springframework.cloud.deployer.spi.core.AppDeploymentRequest request,
Map<String,String> appInstanceEnv,
String deployerId,
Optional<Integer> appInstanceNumber,
LocalDeployerProperties localDeployerProperties,
Optional<DebugAddress> debugAddress)
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.
|
default String |
getJdwpOptions(String suspend,
String address)
Computes the JDWP options with the provided suspend and address arguments.
|
int |
getPortSuggestion(LocalDeployerProperties localDeployerProperties)
Allow the concrete implementation to suggests the target application port.
|
ProcessBuilder buildExecutionCommand(org.springframework.cloud.deployer.spi.core.AppDeploymentRequest request, Map<String,String> appInstanceEnv, String deployerId, Optional<Integer> appInstanceNumber, LocalDeployerProperties localDeployerProperties, Optional<DebugAddress> debugAddress)
request - the request for the application to execute.appInstanceNumber - application instance id.appInstanceEnv - the env vars tha might be needed when building the execution command.debugAddress - application remote debug address.URL getBaseUrl(String deploymentId, int index, int port)
deploymentId - App deployment id.index - App instance index.port - App port.int getPortSuggestion(LocalDeployerProperties localDeployerProperties)
localDeployerProperties - default String getJdwpOptions(String suspend, String address)
suspend - suspend debug argument.address - debug address.Copyright © 2023 Pivotal Software, Inc.. All rights reserved.