public class ScheduleRequest extends AppDeploymentRequest
AppDefinition
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
collocation 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 AppDeploymentRequest.commandlineArguments
.Constructor and Description |
---|
ScheduleRequest(AppDefinition definition,
Map<String,String> schedulerProperties,
Map<String,String> deploymentProperties,
List<String> commandlineArguments,
String scheduleName,
org.springframework.core.io.Resource resource)
Construct an
AppDeploymentRequest . |
ScheduleRequest(AppDefinition definition,
Map<String,String> schedulerProperties,
Map<String,String> deploymentProperties,
String scheduleName,
org.springframework.core.io.Resource resource)
Construct an
AppDeploymentRequest . |
Modifier and Type | Method and Description |
---|---|
String |
getScheduleName() |
Map<String,String> |
getSchedulerProperties() |
void |
setSchedulerProperties(Map<String,String> schedulerProperties) |
String |
toString() |
getCommandlineArguments, getDefinition, getDeploymentProperties, getResource
public ScheduleRequest(AppDefinition definition, Map<String,String> schedulerProperties, Map<String,String> deploymentProperties, String scheduleName, org.springframework.core.io.Resource resource)
AppDeploymentRequest
.definition
- app definition.schedulerProperties
- properties that contain scheduler specific informaton.deploymentProperties
- map of deployment properties; may be null
.scheduleName
- the name associated with the schedule.public ScheduleRequest(AppDefinition definition, Map<String,String> schedulerProperties, Map<String,String> deploymentProperties, List<String> commandlineArguments, String scheduleName, org.springframework.core.io.Resource resource)
AppDeploymentRequest
.definition
- app definitionschedulerProperties
- properties that contain scheduler specific informaton.deploymentProperties
- map of deployment properties; may be null
commandlineArguments
- set of command line arguments; may be null
scheduleName
- the name associated with the schedule.public String getScheduleName()
scheduleName
public String toString()
toString
in class AppDeploymentRequest
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.