public class LocalAppDeployer extends AbstractLocalDeployerSupport implements org.springframework.cloud.deployer.spi.app.AppDeployer
AppDeployer
implementation that spins off a new JVM process per app
instance.AbstractLocalDeployerSupport.Instance
DEFAULT_SERVER_PORT, SPRING_APPLICATION_JSON, usedPorts
Constructor and Description |
---|
LocalAppDeployer(LocalDeployerProperties properties)
Instantiates a new local app deployer.
|
Modifier and Type | Method and Description |
---|---|
String |
deploy(org.springframework.cloud.deployer.spi.core.AppDeploymentRequest request) |
org.springframework.cloud.deployer.spi.core.RuntimeEnvironmentInfo |
environmentInfo() |
String |
getLog(String id) |
void |
shutdown() |
org.springframework.cloud.deployer.spi.app.AppStatus |
status(String id) |
void |
undeploy(String id) |
buildProcessBuilder, buildRemoteDebugInstruction, buildRestTemplate, calcServerPort, calculateDebugPort, containsValidDebugPort, createRuntimeEnvironmentInfo, formatApplicationProperties, getLocalDeployerProperties, getRandomPort, isAlive, isServerPortKeyPresentOnArgs, shouldInheritLogging, shutdownAndWait, useSpringApplicationJson
public LocalAppDeployer(LocalDeployerProperties properties)
properties
- the propertiespublic String deploy(org.springframework.cloud.deployer.spi.core.AppDeploymentRequest request)
deploy
in interface org.springframework.cloud.deployer.spi.app.AppDeployer
public void undeploy(String id)
undeploy
in interface org.springframework.cloud.deployer.spi.app.AppDeployer
public org.springframework.cloud.deployer.spi.app.AppStatus status(String id)
status
in interface org.springframework.cloud.deployer.spi.app.AppDeployer
public String getLog(String id)
getLog
in interface org.springframework.cloud.deployer.spi.app.AppDeployer
public org.springframework.cloud.deployer.spi.core.RuntimeEnvironmentInfo environmentInfo()
environmentInfo
in interface org.springframework.cloud.deployer.spi.app.AppDeployer
@PreDestroy public void shutdown() throws Exception
Exception
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.