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
Modifier and Type | Field and Description |
---|---|
protected static String |
SERVER_PORT_KEY |
USE_SPRING_APPLICATION_JSON_KEY
Constructor and Description |
---|
LocalAppDeployer(LocalDeployerProperties properties)
Instantiates a new local app deployer.
|
Modifier and Type | Method and Description |
---|---|
protected String |
buildRemoteDebugInstruction(Map<String,String> deploymentProperties,
String deploymentId,
int instanceIndex,
int port) |
String |
deploy(org.springframework.cloud.deployer.spi.core.AppDeploymentRequest request) |
org.springframework.cloud.deployer.spi.core.RuntimeEnvironmentInfo |
environmentInfo() |
void |
shutdown() |
org.springframework.cloud.deployer.spi.app.AppStatus |
status(String id) |
void |
undeploy(String id) |
buildProcessBuilder, calculateDebugPort, containsValidDebugPort, createRuntimeEnvironmentInfo, getLocalDeployerProperties, handleAppPropertiesPassing, isAlive, retainEnvVars, shutdownAndWait
protected static final String SERVER_PORT_KEY
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 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
protected String buildRemoteDebugInstruction(Map<String,String> deploymentProperties, String deploymentId, int instanceIndex, int port)
buildRemoteDebugInstruction
in class AbstractLocalDeployerSupport
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.