JobPatchParameter Class
- java.
lang. Object - com.
microsoft. azure. batch. protocol. models. JobPatchParameter
- com.
public class JobPatchParameter
The set of changes to be made to a Job.
Constructor Summary
Constructor | Description | |
---|---|---|
JobPatchParameter() |
Method Summary
Modifier and Type | Method and Description |
---|---|
Boolean |
allowTaskPreemption()
Get if the value is set to True, other high priority jobs submitted to the system will take precedence and will be able requeue tasks from this job. |
Job |
constraints()
Get if omitted, the existing execution constraints are left unchanged. |
Integer |
maxParallelTasks()
Get the value of max |
List<Metadata |
metadata()
Get if omitted, the existing Job metadata is left unchanged. |
Job |
networkConfiguration()
Get the network |
On |
onAllTasksComplete()
Get if omitted, the completion behavior is left unchanged. |
Pool |
poolInfo()
Get you may change the Pool for a Job only when the Job is disabled. |
Integer |
priority()
Get priority values can range from -1000 to 1000, with -1000 being the lowest priority and 1000 being the highest priority. |
Job |
withAllowTaskPreemption(Boolean allowTaskPreemption)
Set if the value is set to True, other high priority jobs submitted to the system will take precedence and will be able requeue tasks from this job. |
Job |
withConstraints(JobConstraints constraints)
Set if omitted, the existing execution constraints are left unchanged. |
Job |
withMaxParallelTasks(Integer maxParallelTasks)
Set the value of max |
Job |
withMetadata(List<MetadataItem> metadata)
Set if omitted, the existing Job metadata is left unchanged. |
Job |
withNetworkConfiguration(JobNetworkConfiguration networkConfiguration)
Set the network |
Job |
withOnAllTasksComplete(OnAllTasksComplete onAllTasksComplete)
Set if omitted, the completion behavior is left unchanged. |
Job |
withPoolInfo(PoolInformation poolInfo)
Set you may change the Pool for a Job only when the Job is disabled. |
Job |
withPriority(Integer priority)
Set priority values can range from -1000 to 1000, with -1000 being the lowest priority and 1000 being the highest priority. |
Methods inherited from java.lang.Object
Constructor Details
JobPatchParameter
public JobPatchParameter()
Method Details
allowTaskPreemption
public Boolean allowTaskPreemption()
Get if the value is set to True, other high priority jobs submitted to the system will take precedence and will be able requeue tasks from this job. You can update a job's allowTaskPreemption after it has been created using the update job API.
Returns:
constraints
public JobConstraints constraints()
Get if omitted, the existing execution constraints are left unchanged.
Returns:
maxParallelTasks
public Integer maxParallelTasks()
Get the value of maxParallelTasks must be -1 or greater than 0 if specified. If not specified, the default value is -1, which means there's no limit to the number of tasks that can be run at once. You can update a job's maxParallelTasks after it has been created using the update job API.
Returns:
metadata
public List
Get if omitted, the existing Job metadata is left unchanged.
Returns:
networkConfiguration
public JobNetworkConfiguration networkConfiguration()
Get the networkConfiguration value.
Returns:
onAllTasksComplete
public OnAllTasksComplete onAllTasksComplete()
Get if omitted, the completion behavior is left unchanged. You may not change the value from terminatejob to noaction - that is, once you have engaged automatic Job termination, you cannot turn it off again. If you try to do this, the request fails with an 'invalid property value' error response; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request). Possible values include: 'noAction', 'terminateJob'.
Returns:
poolInfo
public PoolInformation poolInfo()
Get you may change the Pool for a Job only when the Job is disabled. The Patch Job call will fail if you include the poolInfo element and the Job is not disabled. If you specify an autoPoolSpecification in the poolInfo, only the keepAlive property of the autoPoolSpecification can be updated, and then only if the autoPoolSpecification has a poolLifetimeOption of Job (other job properties can be updated as normal). If omitted, the Job continues to run on its current Pool.
Returns:
priority
public Integer priority()
Get priority values can range from -1000 to 1000, with -1000 being the lowest priority and 1000 being the highest priority. If omitted, the priority of the Job is left unchanged.
Returns:
withAllowTaskPreemption
public JobPatchParameter withAllowTaskPreemption(Boolean allowTaskPreemption)
Set if the value is set to True, other high priority jobs submitted to the system will take precedence and will be able requeue tasks from this job. You can update a job's allowTaskPreemption after it has been created using the update job API.
Parameters:
Returns:
withConstraints
public JobPatchParameter withConstraints(JobConstraints constraints)
Set if omitted, the existing execution constraints are left unchanged.
Parameters:
Returns:
withMaxParallelTasks
public JobPatchParameter withMaxParallelTasks(Integer maxParallelTasks)
Set the value of maxParallelTasks must be -1 or greater than 0 if specified. If not specified, the default value is -1, which means there's no limit to the number of tasks that can be run at once. You can update a job's maxParallelTasks after it has been created using the update job API.
Parameters:
Returns:
withMetadata
public JobPatchParameter withMetadata(List
Set if omitted, the existing Job metadata is left unchanged.
Parameters:
Returns:
withNetworkConfiguration
public JobPatchParameter withNetworkConfiguration(JobNetworkConfiguration networkConfiguration)
Set the networkConfiguration value.
Parameters:
Returns:
withOnAllTasksComplete
public JobPatchParameter withOnAllTasksComplete(OnAllTasksComplete onAllTasksComplete)
Set if omitted, the completion behavior is left unchanged. You may not change the value from terminatejob to noaction - that is, once you have engaged automatic Job termination, you cannot turn it off again. If you try to do this, the request fails with an 'invalid property value' error response; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request). Possible values include: 'noAction', 'terminateJob'.
Parameters:
Returns:
withPoolInfo
public JobPatchParameter withPoolInfo(PoolInformation poolInfo)
Set you may change the Pool for a Job only when the Job is disabled. The Patch Job call will fail if you include the poolInfo element and the Job is not disabled. If you specify an autoPoolSpecification in the poolInfo, only the keepAlive property of the autoPoolSpecification can be updated, and then only if the autoPoolSpecification has a poolLifetimeOption of Job (other job properties can be updated as normal). If omitted, the Job continues to run on its current Pool.
Parameters:
Returns:
withPriority
public JobPatchParameter withPriority(Integer priority)
Set priority values can range from -1000 to 1000, with -1000 being the lowest priority and 1000 being the highest priority. If omitted, the priority of the Job is left unchanged.
Parameters:
Returns:
Applies to
Azure SDK for Java