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
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) |
String |
launch(org.springframework.cloud.deployer.spi.core.AppDeploymentRequest request) |
void |
shutdown() |
org.springframework.cloud.deployer.spi.task.TaskStatus |
status(String id) |
buildProcessBuilder, getLocalDeployerProperties, isAlive, retainEnvVars, shutdownAndWait
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 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
@PreDestroy public void shutdown() throws Exception
Exception
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.