public abstract class AbstractLocalDeployerSupport extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static interface |
AbstractLocalDeployerSupport.Instance |
| Constructor and Description |
|---|
AbstractLocalDeployerSupport(LocalDeployerProperties properties)
Instantiates a new abstract deployer support.
|
| Modifier and Type | Method and Description |
|---|---|
protected ProcessBuilder |
buildProcessBuilder(AppDeploymentRequest request,
Map<String,String> args)
Builds the process builder.
|
protected LocalDeployerProperties |
getLocalDeployerProperties()
Gets the local deployer properties.
|
protected static boolean |
isAlive(Process process) |
protected void |
retainEnvVars(Set<String> vars)
Retain the environment variable strings in the provided set indicated by
LocalDeployerProperties.getEnvVarsToInherit(). |
protected void |
shutdownAndWait(AbstractLocalDeployerSupport.Instance instance)
Shut down the
Process backing the application AbstractLocalDeployerSupport.Instance. |
public AbstractLocalDeployerSupport(LocalDeployerProperties properties)
properties - the local deployer propertiesprotected final LocalDeployerProperties getLocalDeployerProperties()
protected void retainEnvVars(Set<String> vars)
LocalDeployerProperties.getEnvVarsToInherit().
This assumes that the provided set can be modified.vars - set of environment variable stringsprotected ProcessBuilder buildProcessBuilder(AppDeploymentRequest request, Map<String,String> args)
request - the requestargs - the argsprotected void shutdownAndWait(AbstractLocalDeployerSupport.Instance instance)
Process backing the application AbstractLocalDeployerSupport.Instance.
If the application exposes a /shutdown endpoint, that will be
invoked followed by a wait that will not exceed the number of seconds
indicated by LocalDeployerProperties.shutdownTimeout. If the
timeout period is exceeded (or if the /shutdown endpoint is not exposed),
the process will be shut down via Process.destroy().instance - the application instance to shut downprotected static boolean isAlive(Process process)
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.