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 into the app itself, use AppDefinition.getProperties()
.
Those could be passed as env vars, or whatever approach is best for the target
platform. Each deployer implementation should clearly document how it handles
these properties.
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() |
String |
toString() |
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 null
public 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 null
commandlineArguments
- set of command line arguments; may be null
public 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()
definition
public org.springframework.core.io.Resource getResource()
resource
public Map<String,String> getDeploymentProperties()
deploymentProperties
public List<String> getCommandlineArguments()
commandlineArguments
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.