CloudJob Class
- java.
lang. Object - com.
microsoft. azure. batch. protocol. models. CloudJob
- com.
public class CloudJob
An Azure Batch job.
Method Summary
Modifier and Type | Method and Description |
---|---|
List<Environment |
commonEnvironmentSettings()
Get individual tasks can override an environment setting specified here by specifying the same setting name with a different value. |
Job |
constraints()
Get the constraints value. |
DateTime |
creationTime()
Get the creationTime value. |
String |
displayName()
Get the displayName value. |
String |
eTag()
Get this is an opaque string. You can use it to detect whether the job has changed between requests. In particular, you can be pass the ETag when updating a job to specify that your changes should take effect only if nobody else has modified the job in the meantime. |
Job |
executionInfo()
Get the executionInfo value. |
String |
id()
Get the ID is case-preserving and case-insensitive (that is, you may not have two IDs within an account that differ only by case). |
Job |
jobManagerTask()
Get the jobManagerTask value. |
Job |
jobPreparationTask()
Get the Job Preparation task is a special task run on each node before any other task of the job. |
Job |
jobReleaseTask()
Get the Job Release task is a special task run at the end of the job on each node that has run any other task of the job. |
DateTime |
lastModified()
Get this is the last time at which the job level data, such as the job state or priority, changed. It does not factor in task-level changes such as adding new tasks or tasks changing state. |
List<Metadata |
metadata()
Get the Batch service does not assign any meaning to metadata; it is solely for the use of user code. |
Job |
networkConfiguration()
Get the networkConfiguration value. |
On |
onAllTasksComplete()
Get the default is noaction. Possible values include: 'noAction', 'terminateJob'. |
On |
onTaskFailure()
Get a task is considered to have failed if has a failureInfo. A failureInfo is set if the task completes with a non-zero exit code after exhausting its retry count, or if there was an error starting the task, for example due to a resource file download error. The default is noaction. Possible values include: 'noAction', 'performExitOptionsJobAction'. |
Pool |
poolInfo()
Get the poolInfo value. |
Job |
previousState()
Get this property is not set if the job is in its initial Active state. Possible values include: 'active', 'disabling', 'disabled', 'enabling', 'terminating', 'completed', 'deleting'. |
DateTime |
previousStateTransitionTime()
Get this property is not set if the job is in its initial Active state. |
Integer |
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. |
Job |
state()
Get possible values include: 'active', 'disabling', 'disabled', 'enabling', 'terminating', 'completed', 'deleting'. |
DateTime |
stateTransitionTime()
Get the stateTransitionTime value. |
Job |
stats()
Get the stats value. |
String |
url()
Get the url value. |
Boolean |
usesTaskDependencies()
Get the usesTaskDependencies value. |
Cloud |
withCommonEnvironmentSettings(List<EnvironmentSetting> commonEnvironmentSettings)
Set individual tasks can override an environment setting specified here by specifying the same setting name with a different value. |
Cloud |
withConstraints(JobConstraints constraints)
Set the constraints value. |
Cloud |
withCreationTime(DateTime creationTime)
Set the creationTime value. |
Cloud |
withDisplayName(String displayName)
Set the displayName value. |
Cloud |
withETag(String eTag)
Set this is an opaque string. You can use it to detect whether the job has changed between requests. In particular, you can be pass the ETag when updating a job to specify that your changes should take effect only if nobody else has modified the job in the meantime. |
Cloud |
withExecutionInfo(JobExecutionInformation executionInfo)
Set the executionInfo value. |
Cloud |
withId(String id)
Set the ID is case-preserving and case-insensitive (that is, you may not have two IDs within an account that differ only by case). |
Cloud |
withJobManagerTask(JobManagerTask jobManagerTask)
Set the jobManagerTask value. |
Cloud |
withJobPreparationTask(JobPreparationTask jobPreparationTask)
Set the Job Preparation task is a special task run on each node before any other task of the job. |
Cloud |
withJobReleaseTask(JobReleaseTask jobReleaseTask)
Set the Job Release task is a special task run at the end of the job on each node that has run any other task of the job. |
Cloud |
withLastModified(DateTime lastModified)
Set this is the last time at which the job level data, such as the job state or priority, changed. It does not factor in task-level changes such as adding new tasks or tasks changing state. |
Cloud |
withMetadata(List<MetadataItem> metadata)
Set the Batch service does not assign any meaning to metadata; it is solely for the use of user code. |
Cloud |
withNetworkConfiguration(JobNetworkConfiguration networkConfiguration)
Set the networkConfiguration value. |
Cloud |
withOnAllTasksComplete(OnAllTasksComplete onAllTasksComplete)
Set the default is noaction. Possible values include: 'noAction', 'terminateJob'. |
Cloud |
withOnTaskFailure(OnTaskFailure onTaskFailure)
Set a task is considered to have failed if has a failureInfo. A failureInfo is set if the task completes with a non-zero exit code after exhausting its retry count, or if there was an error starting the task, for example due to a resource file download error. The default is noaction. Possible values include: 'noAction', 'performExitOptionsJobAction'. |
Cloud |
withPoolInfo(PoolInformation poolInfo)
Set the poolInfo value. |
Cloud |
withPreviousState(JobState previousState)
Set this property is not set if the job is in its initial Active state. Possible values include: 'active', 'disabling', 'disabled', 'enabling', 'terminating', 'completed', 'deleting'. |
Cloud |
withPreviousStateTransitionTime(DateTime previousStateTransitionTime)
Set this property is not set if the job is in its initial Active state. |
Cloud |
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. |
Cloud |
withState(JobState state)
Set possible values include: 'active', 'disabling', 'disabled', 'enabling', 'terminating', 'completed', 'deleting'. |
Cloud |
withStateTransitionTime(DateTime stateTransitionTime)
Set the stateTransitionTime value. |
Cloud |
withStats(JobStatistics stats)
Set the stats value. |
Cloud |
withUrl(String url)
Set the url value. |
Cloud |
withUsesTaskDependencies(Boolean usesTaskDependencies)
Set the usesTaskDependencies value. |
Method Details
commonEnvironmentSettings
public List
Get individual tasks can override an environment setting specified here by specifying the same setting name with a different value.
Returns:
constraints
public JobConstraints constraints()
Get the constraints value.
Returns:
creationTime
public DateTime creationTime()
Get the creationTime value.
Returns:
displayName
public String displayName()
Get the displayName value.
Returns:
eTag
public String eTag()
Get this is an opaque string. You can use it to detect whether the job has changed between requests. In particular, you can be pass the ETag when updating a job to specify that your changes should take effect only if nobody else has modified the job in the meantime.
Returns:
executionInfo
public JobExecutionInformation executionInfo()
Get the executionInfo value.
Returns:
id
public String id()
Get the ID is case-preserving and case-insensitive (that is, you may not have two IDs within an account that differ only by case).
Returns:
jobManagerTask
public JobManagerTask jobManagerTask()
Get the jobManagerTask value.
Returns:
jobPreparationTask
public JobPreparationTask jobPreparationTask()
Get the Job Preparation task is a special task run on each node before any other task of the job.
Returns:
jobReleaseTask
public JobReleaseTask jobReleaseTask()
Get the Job Release task is a special task run at the end of the job on each node that has run any other task of the job.
Returns:
lastModified
public DateTime lastModified()
Get this is the last time at which the job level data, such as the job state or priority, changed. It does not factor in task-level changes such as adding new tasks or tasks changing state.
Returns:
metadata
public List
Get the Batch service does not assign any meaning to metadata; it is solely for the use of user code.
Returns:
networkConfiguration
public JobNetworkConfiguration networkConfiguration()
Get the networkConfiguration value.
Returns:
onAllTasksComplete
public OnAllTasksComplete onAllTasksComplete()
Get the default is noaction. Possible values include: 'noAction', 'terminateJob'.
Returns:
onTaskFailure
public OnTaskFailure onTaskFailure()
Get a task is considered to have failed if has a failureInfo. A failureInfo is set if the task completes with a non-zero exit code after exhausting its retry count, or if there was an error starting the task, for example due to a resource file download error. The default is noaction. Possible values include: 'noAction', 'performExitOptionsJobAction'.
Returns:
poolInfo
public PoolInformation poolInfo()
Get the poolInfo value.
Returns:
previousState
public JobState previousState()
Get this property is not set if the job is in its initial Active state. Possible values include: 'active', 'disabling', 'disabled', 'enabling', 'terminating', 'completed', 'deleting'.
Returns:
previousStateTransitionTime
public DateTime previousStateTransitionTime()
Get this property is not set if the job is in its initial Active state.
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. The default value is 0.
Returns:
state
public JobState state()
Get possible values include: 'active', 'disabling', 'disabled', 'enabling', 'terminating', 'completed', 'deleting'.
Returns:
stateTransitionTime
public DateTime stateTransitionTime()
Get the stateTransitionTime value.
Returns:
stats
public JobStatistics stats()
Get the stats value.
Returns:
url
public String url()
Get the url value.
Returns:
usesTaskDependencies
public Boolean usesTaskDependencies()
Get the usesTaskDependencies value.
Returns:
withCommonEnvironmentSettings
public CloudJob withCommonEnvironmentSettings(List
Set individual tasks can override an environment setting specified here by specifying the same setting name with a different value.
Parameters:
Returns:
withConstraints
public CloudJob withConstraints(JobConstraints constraints)
Set the constraints value.
Parameters:
Returns:
withCreationTime
public CloudJob withCreationTime(DateTime creationTime)
Set the creationTime value.
Parameters:
Returns:
withDisplayName
public CloudJob withDisplayName(String displayName)
Set the displayName value.
Parameters:
Returns:
withETag
public CloudJob withETag(String eTag)
Set this is an opaque string. You can use it to detect whether the job has changed between requests. In particular, you can be pass the ETag when updating a job to specify that your changes should take effect only if nobody else has modified the job in the meantime.
Parameters:
Returns:
withExecutionInfo
public CloudJob withExecutionInfo(JobExecutionInformation executionInfo)
Set the executionInfo value.
Parameters:
Returns:
withId
public CloudJob withId(String id)
Set the ID is case-preserving and case-insensitive (that is, you may not have two IDs within an account that differ only by case).
Parameters:
Returns:
withJobManagerTask
public CloudJob withJobManagerTask(JobManagerTask jobManagerTask)
Set the jobManagerTask value.
Parameters:
Returns:
withJobPreparationTask
public CloudJob withJobPreparationTask(JobPreparationTask jobPreparationTask)
Set the Job Preparation task is a special task run on each node before any other task of the job.
Parameters:
Returns:
withJobReleaseTask
public CloudJob withJobReleaseTask(JobReleaseTask jobReleaseTask)
Set the Job Release task is a special task run at the end of the job on each node that has run any other task of the job.
Parameters:
Returns:
withLastModified
public CloudJob withLastModified(DateTime lastModified)
Set this is the last time at which the job level data, such as the job state or priority, changed. It does not factor in task-level changes such as adding new tasks or tasks changing state.
Parameters:
Returns:
withMetadata
public CloudJob withMetadata(List
Set the Batch service does not assign any meaning to metadata; it is solely for the use of user code.
Parameters:
Returns:
withNetworkConfiguration
public CloudJob withNetworkConfiguration(JobNetworkConfiguration networkConfiguration)
Set the networkConfiguration value.
Parameters:
Returns:
withOnAllTasksComplete
public CloudJob withOnAllTasksComplete(OnAllTasksComplete onAllTasksComplete)
Set the default is noaction. Possible values include: 'noAction', 'terminateJob'.
Parameters:
Returns:
withOnTaskFailure
public CloudJob withOnTaskFailure(OnTaskFailure onTaskFailure)
Set a task is considered to have failed if has a failureInfo. A failureInfo is set if the task completes with a non-zero exit code after exhausting its retry count, or if there was an error starting the task, for example due to a resource file download error. The default is noaction. Possible values include: 'noAction', 'performExitOptionsJobAction'.
Parameters:
Returns:
withPoolInfo
public CloudJob withPoolInfo(PoolInformation poolInfo)
Set the poolInfo value.
Parameters:
Returns:
withPreviousState
public CloudJob withPreviousState(JobState previousState)
Set this property is not set if the job is in its initial Active state. Possible values include: 'active', 'disabling', 'disabled', 'enabling', 'terminating', 'completed', 'deleting'.
Parameters:
Returns:
withPreviousStateTransitionTime
public CloudJob withPreviousStateTransitionTime(DateTime previousStateTransitionTime)
Set this property is not set if the job is in its initial Active state.
Parameters:
Returns:
withPriority
public CloudJob 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.
Parameters:
Returns:
withState
public CloudJob withState(JobState state)
Set possible values include: 'active', 'disabling', 'disabled', 'enabling', 'terminating', 'completed', 'deleting'.
Parameters:
Returns:
withStateTransitionTime
public CloudJob withStateTransitionTime(DateTime stateTransitionTime)
Set the stateTransitionTime value.
Parameters:
Returns:
withStats
public CloudJob withStats(JobStatistics stats)
Set the stats value.
Parameters:
Returns:
withUrl
public CloudJob withUrl(String url)
Set the url value.
Parameters:
Returns:
withUsesTaskDependencies
public CloudJob withUsesTaskDependencies(Boolean usesTaskDependencies)
Set the usesTaskDependencies value.
Parameters:
Returns:
Applies to
Azure SDK for Java