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> 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,
List<String> commandlineArguments,
String scheduleName,
org.springframework.core.io.Resource resource)
Deprecated.
|
ScheduleRequest(AppDefinition definition,
Map<String,String> schedulerProperties,
Map<String,String> deploymentProperties,
String scheduleName,
org.springframework.core.io.Resource resource)
Deprecated.
|
ScheduleRequest(AppDefinition definition,
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()
Deprecated.
|
void |
setSchedulerProperties(Map<String,String> schedulerProperties)
Deprecated.
|
String |
toString() |
getCommandlineArguments, getDefinition, getDeploymentProperties, getResource
@Deprecated 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 information.deploymentProperties
- map of deployment properties; may be null
.scheduleName
- the name associated with the schedule.resource
- the resource associated with the request.@Deprecated 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 information.deploymentProperties
- map of deployment properties; may be null
commandlineArguments
- set of command line arguments; may be null
scheduleName
- the name associated with the schedule.resource
- the resource associated with the request.public ScheduleRequest(AppDefinition definition, Map<String,String> deploymentProperties, String scheduleName, org.springframework.core.io.Resource resource)
AppDeploymentRequest
.definition
- app definition.deploymentProperties
- map of deployment properties; may be null
.scheduleName
- the name associated with the schedule.resource
- the resource associated with the request.public ScheduleRequest(AppDefinition definition, Map<String,String> deploymentProperties, List<String> commandlineArguments, String scheduleName, org.springframework.core.io.Resource resource)
AppDeploymentRequest
.definition
- app definitiondeploymentProperties
- map of deployment properties; may be null
commandlineArguments
- set of command line arguments; may be null
scheduleName
- the name associated with the schedule.resource
- the resource associated with the request.public String getScheduleName()
scheduleName
@Deprecated public Map<String,String> getSchedulerProperties()
@Deprecated public void setSchedulerProperties(Map<String,String> schedulerProperties)
public String toString()
toString
in class AppDeploymentRequest
Copyright © 2022 Pivotal Software, Inc.. All rights reserved.