JobSpecification 类

定义

Specifies details of the jobs to be created on a schedule.

public class JobSpecification
继承
java.lang.Object
JobSpecification

方法

commonEnvironmentSettings()

Get individual tasks can override an environment setting specified here by specifying the same setting name with a different value.

constraints()

Get the constraints value.

displayName()

Get the name need not be unique and can contain any Unicode characters up to a maximum length of 1024.

jobManagerTask()

Get if the job does not specify a Job Manager task, the user must explicitly add tasks to the job using the Task API. If the job does specify a Job Manager task, the Batch service creates the Job Manager task when the job is created, and will try to schedule the Job Manager task before scheduling other tasks in the job.

jobPreparationTask()

Get if a job has a Job Preparation task, the Batch service will run the Job Preparation task on a compute node before starting any tasks of that job on that compute node.

jobReleaseTask()

Get the primary purpose of the Job Release task is to undo changes to compute nodes made by the Job Preparation task. Example activities include deleting local files, or shutting down services that were started as part of job preparation. A Job Release task cannot be specified without also specifying a Job Preparation task for the job. The Batch service runs the Job Release task on the compute nodes that have run the Job Preparation task.

metadata()

Get the Batch service does not assign any meaning to metadata; it is solely for the use of user code.

networkConfiguration()

Get the networkConfiguration value.

onAllTasksComplete()

Get note that if a job contains no tasks, then all tasks are considered complete. This option is therefore most commonly used with a Job Manager task; if you want to use automatic job termination without a Job Manager, you should initially set onAllTasksComplete to noaction and update the job properties to set onAllTasksComplete to terminatejob once you have finished adding tasks. The default is noaction. Possible values include: 'noAction', 'terminateJob'.

onTaskFailure()

Get the default is noaction. Possible values include: 'noAction', 'performExitOptionsJobAction'.

poolInfo()

Get the poolInfo value.

priority()

Get priority values can range from -1000 to 1000, with -1000 being the lowest priority and 1000 being the highest priority. The default value is 0. This priority is used as the default for all jobs under the job schedule. You can update a job's priority after it has been created using by using the update job API.

usesTaskDependencies()

Get the usesTaskDependencies value.

withCommonEnvironmentSettings(List<EnvironmentSetting> commonEnvironmentSettings)

Set individual tasks can override an environment setting specified here by specifying the same setting name with a different value.

withConstraints(JobConstraints constraints)

Set the constraints value.

withDisplayName(String displayName)

Set the name need not be unique and can contain any Unicode characters up to a maximum length of 1024.

withJobManagerTask(JobManagerTask jobManagerTask)

Set if the job does not specify a Job Manager task, the user must explicitly add tasks to the job using the Task API. If the job does specify a Job Manager task, the Batch service creates the Job Manager task when the job is created, and will try to schedule the Job Manager task before scheduling other tasks in the job.

withJobPreparationTask(JobPreparationTask jobPreparationTask)

Set if a job has a Job Preparation task, the Batch service will run the Job Preparation task on a compute node before starting any tasks of that job on that compute node.

withJobReleaseTask(JobReleaseTask jobReleaseTask)

Set the primary purpose of the Job Release task is to undo changes to compute nodes made by the Job Preparation task. Example activities include deleting local files, or shutting down services that were started as part of job preparation. A Job Release task cannot be specified without also specifying a Job Preparation task for the job. The Batch service runs the Job Release task on the compute nodes that have run the Job Preparation task.

withMetadata(List<MetadataItem> metadata)

Set the Batch service does not assign any meaning to metadata; it is solely for the use of user code.

withNetworkConfiguration(JobNetworkConfiguration networkConfiguration)

Set the networkConfiguration value.

withOnAllTasksComplete(OnAllTasksComplete onAllTasksComplete)

Set note that if a job contains no tasks, then all tasks are considered complete. This option is therefore most commonly used with a Job Manager task; if you want to use automatic job termination without a Job Manager, you should initially set onAllTasksComplete to noaction and update the job properties to set onAllTasksComplete to terminatejob once you have finished adding tasks. The default is noaction. Possible values include: 'noAction', 'terminateJob'.

withOnTaskFailure(OnTaskFailure onTaskFailure)

Set the default is noaction. Possible values include: 'noAction', 'performExitOptionsJobAction'.

withPoolInfo(PoolInformation poolInfo)

Set the poolInfo value.

withPriority(Integer priority)

Set priority values can range from -1000 to 1000, with -1000 being the lowest priority and 1000 being the highest priority. The default value is 0. This priority is used as the default for all jobs under the job schedule. You can update a job's priority after it has been created using by using the update job API.

withUsesTaskDependencies(Boolean usesTaskDependencies)

Set the usesTaskDependencies value.

适用于