public class AppDeploymentRequest extends Object
AppDefinition, the Resource representing its deployable
artifact, and any deployment properties.
Deployment properties are related to a specific implementation of the SPI
and will never be passed into an app itself. For example, a runtime container
may allow the definition of various settings for a context where the actual
app is executed, such as allowed memory, cpu or simply a way to define
colocation like node labeling.
For passing properties or parameters into the app itself, use
AppDefinition.getProperties().
For passing command line arguments into the app itself, use
commandlineArguments.| Constructor and Description |
|---|
AppDeploymentRequest(AppDefinition definition,
org.springframework.core.io.Resource resource)
Construct an
AppDeploymentRequest with no deployment properties. |
AppDeploymentRequest(AppDefinition definition,
org.springframework.core.io.Resource resource,
Map<String,String> deploymentProperties)
Construct an
AppDeploymentRequest. |
AppDeploymentRequest(AppDefinition definition,
org.springframework.core.io.Resource resource,
Map<String,String> deploymentProperties,
List<String> commandlineArguments)
Construct an
AppDeploymentRequest. |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getCommandlineArguments() |
AppDefinition |
getDefinition() |
Map<String,String> |
getDeploymentProperties() |
org.springframework.core.io.Resource |
getResource() |
public AppDeploymentRequest(AppDefinition definition, org.springframework.core.io.Resource resource, Map<String,String> deploymentProperties)
AppDeploymentRequest.definition - app definitionresource - resource for the underlying app's artifactdeploymentProperties - map of deployment properties; may be nullpublic AppDeploymentRequest(AppDefinition definition, org.springframework.core.io.Resource resource, Map<String,String> deploymentProperties, List<String> commandlineArguments)
AppDeploymentRequest.definition - app definitionresource - resource for the underlying app's artifactdeploymentProperties - map of deployment properties; may be nullcommandlineArguments - set of command line arguments; may be nullpublic AppDeploymentRequest(AppDefinition definition, org.springframework.core.io.Resource resource)
AppDeploymentRequest with no deployment properties.definition - app definitionresource - resource for the underlying app's artifactpublic AppDefinition getDefinition()
definitionpublic org.springframework.core.io.Resource getResource()
resourcepublic Map<String,String> getDeploymentProperties()
deploymentPropertiespublic List<String> getCommandlineArguments()
commandlineArgumentsCopyright © 2016 Pivotal Software, Inc.. All rights reserved.