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.Instance
DEFAULT_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, windowsSupport
public 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.TaskLauncher
public void cancel(String id)
cancel
in interface org.springframework.cloud.deployer.spi.task.TaskLauncher
public org.springframework.cloud.deployer.spi.task.TaskStatus status(String id)
status
in interface org.springframework.cloud.deployer.spi.task.TaskLauncher
public String getLog(String id)
getLog
in interface org.springframework.cloud.deployer.spi.task.TaskLauncher
public void cleanup(String id)
cleanup
in interface org.springframework.cloud.deployer.spi.task.TaskLauncher
public void destroy(String appName)
destroy
in interface org.springframework.cloud.deployer.spi.task.TaskLauncher
public org.springframework.cloud.deployer.spi.core.RuntimeEnvironmentInfo environmentInfo()
environmentInfo
in interface org.springframework.cloud.deployer.spi.task.TaskLauncher
public int getMaximumConcurrentTasks()
getMaximumConcurrentTasks
in interface org.springframework.cloud.deployer.spi.task.TaskLauncher
public int getRunningTaskExecutionCount()
getRunningTaskExecutionCount
in interface org.springframework.cloud.deployer.spi.task.TaskLauncher
@PreDestroy public void shutdown() throws Exception
Exception
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.