public class LocalTaskLauncher extends AbstractLocalDeployerSupport implements org.springframework.cloud.deployer.spi.task.TaskLauncher
TaskLauncher implementation that spins off a new JVM process per task launch.AbstractLocalDeployerSupport.InstanceDEFAULT_SERVER_PORT, SPRING_APPLICATION_JSON, usedPorts| Constructor and Description |
|---|
LocalTaskLauncher(LocalDeployerProperties properties)
Instantiates a new local task launcher.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancel(String id) |
void |
cleanup(String id) |
void |
destroy(String appName) |
org.springframework.cloud.deployer.spi.core.RuntimeEnvironmentInfo |
environmentInfo() |
String |
getLog(String id) |
int |
getMaximumConcurrentTasks() |
int |
getRunningTaskExecutionCount() |
String |
launch(org.springframework.cloud.deployer.spi.core.AppDeploymentRequest request) |
void |
shutdown() |
org.springframework.cloud.deployer.spi.task.TaskStatus |
status(String id) |
bindDeploymentProperties, buildProcessBuilder, buildRestTemplate, calcServerPort, createRuntimeEnvironmentInfo, formatApplicationProperties, getCommandBuilder, getLocalDeployerProperties, getRandomPort, isAlive, isServerPortKeyPresentOnArgs, shouldInheritLogging, shutdownAndWait, useSpringApplicationJson, windowsSupportpublic LocalTaskLauncher(LocalDeployerProperties properties)
properties - the propertiespublic String launch(org.springframework.cloud.deployer.spi.core.AppDeploymentRequest request)
launch in interface org.springframework.cloud.deployer.spi.task.TaskLauncherpublic void cancel(String id)
cancel in interface org.springframework.cloud.deployer.spi.task.TaskLauncherpublic org.springframework.cloud.deployer.spi.task.TaskStatus status(String id)
status in interface org.springframework.cloud.deployer.spi.task.TaskLauncherpublic String getLog(String id)
getLog in interface org.springframework.cloud.deployer.spi.task.TaskLauncherpublic void cleanup(String id)
cleanup in interface org.springframework.cloud.deployer.spi.task.TaskLauncherpublic void destroy(String appName)
destroy in interface org.springframework.cloud.deployer.spi.task.TaskLauncherpublic org.springframework.cloud.deployer.spi.core.RuntimeEnvironmentInfo environmentInfo()
environmentInfo in interface org.springframework.cloud.deployer.spi.task.TaskLauncherpublic int getMaximumConcurrentTasks()
getMaximumConcurrentTasks in interface org.springframework.cloud.deployer.spi.task.TaskLauncherpublic int getRunningTaskExecutionCount()
getRunningTaskExecutionCount in interface org.springframework.cloud.deployer.spi.task.TaskLauncher@PreDestroy public void shutdown() throws Exception
ExceptionCopyright © 2023 Pivotal Software, Inc.. All rights reserved.