JobOperations Class
- java.
lang. Object - com.
microsoft. azure. batch. JobOperations
- com.
Implements
public class JobOperations
implements IInheritedBehaviors
Performs job-related operations on an Azure Batch account.
Method Summary
Methods inherited from java.lang.Object
Method Details
createJob
public void createJob(JobAddParameter job)
Adds a job to the Batch account.
Parameters:
Throws:
createJob
public void createJob(JobAddParameter job, Iterable
Adds a job to the Batch account.
Parameters:
Throws:
createJob
public void createJob(String jobId, PoolInformation poolInfo)
Adds a job to the Batch account.
Parameters:
Throws:
createJob
public void createJob(String jobId, PoolInformation poolInfo, Iterable
Adds a job to the Batch account.
Parameters:
Throws:
customBehaviors
public Collection
Gets a collection of behaviors that modify or customize requests to the Batch service.
Returns:
deleteJob
public void deleteJob(String jobId)
Deletes the specified job.
Parameters:
Throws:
deleteJob
public void deleteJob(String jobId, Iterable
Deletes the specified job.
Parameters:
Throws:
disableJob
public void disableJob(String jobId, DisableJobOption disableJobOption)
Disables the specified job. Disabled jobs do not run new tasks, but may be re-enabled later.
Parameters:
Throws:
disableJob
public void disableJob(String jobId, DisableJobOption disableJobOption, Iterable
Disables the specified job. Disabled jobs do not run new tasks, but may be re-enabled later.
Parameters:
Throws:
enableJob
public void enableJob(String jobId)
Enables the specified job, allowing new tasks to run.
Parameters:
Throws:
enableJob
public void enableJob(String jobId, Iterable
Enables the specified job, allowing new tasks to run.
Parameters:
Throws:
getJob
public CloudJob getJob(String jobId)
Gets the specified CloudJob.
Parameters:
Returns:
Throws:
getJob
public CloudJob getJob(String jobId, DetailLevel detailLevel)
Gets the specified CloudJob.
Parameters:
Returns:
Throws:
getJob
public CloudJob getJob(String jobId, DetailLevel detailLevel, Iterable
Gets the specified CloudJob.
Parameters:
Returns:
Throws:
getTaskCounts
public TaskCounts getTaskCounts(String jobId)
Gets the task counts for the specified job. Task counts provide a count of the tasks by active, running or completed task state, and a count of tasks which succeeded or failed. Tasks in the preparing state are counted as running.
Parameters:
Returns:
Throws:
getTaskCounts
public TaskCounts getTaskCounts(String jobId, Iterable
Gets the task counts for the specified job. Task counts provide a count of the tasks by active, running or completed task state, and a count of tasks which succeeded or failed. Tasks in the preparing state are counted as running.
Parameters:
Returns:
Throws:
getTaskCountsResult
public TaskCountsResult getTaskCountsResult(String jobId)
Gets the task counts result for the specified job. The result includes both task counts and task slot counts. Each counts object provides a count of the tasks by active, running or completed task state, and a count of tasks which succeeded or failed. Tasks in the preparing state are counted as running.
Parameters:
Returns:
Throws:
getTaskCountsResult
public TaskCountsResult getTaskCountsResult(String jobId, Iterable
Gets the task counts result for the specified job. The result includes both task counts and task slot counts. Each counts object provides a count of the tasks by active, running or completed task state, and a count of tasks which succeeded or failed. Tasks in the preparing state are counted as running.
Parameters:
Returns:
Throws:
getTaskSlotCounts
public TaskSlotCounts getTaskSlotCounts(String jobId)
Gets the task slot counts for the specified job. Task slot counts provide a count of the tasks by active, running or completed task state, and a count of tasks which succeeded or failed. Tasks in the preparing state are counted as running.
Parameters:
Returns:
Throws:
getTaskSlotCounts
public TaskSlotCounts getTaskSlotCounts(String jobId, Iterable
Gets the task slot counts for the specified job. Task slot counts provide a count of the tasks by active, running or completed task state, and a count of tasks which succeeded or failed. Tasks in the preparing state are counted as running.
Parameters:
Returns:
Throws:
listJobs
public PagedList
Lists the CloudJob in the Batch account.
Returns:
Throws:
listJobs
public PagedList
Lists the CloudJob in the Batch account.
Parameters:
Returns:
Throws:
listJobs
public PagedList
Lists the CloudJob in the Batch account.
Parameters:
Returns:
Throws:
listJobs
public PagedList
Lists the CloudJob created under the specified job schedule.
Parameters:
Returns:
Throws:
listJobs
public PagedList
Lists the CloudJob created under the specified job schedule.
Parameters:
Returns:
Throws:
listJobs
public PagedList
Lists the CloudJob created under the specified jobSchedule.
Parameters:
Returns:
Throws:
listPreparationAndReleaseTaskStatus
public PagedList
Lists the status of JobPreparationTask and JobReleaseTask tasks for the specified job.
Parameters:
Returns:
Throws:
listPreparationAndReleaseTaskStatus
public PagedList
Lists the status of JobPreparationTask and JobReleaseTask tasks for the specified job.
Parameters:
Returns:
Throws:
patchJob
public void patchJob(String jobId, JobPatchParameter jobPatchParameter)
Updates the specified job. This method only replaces the properties specified with non-null values.
Parameters:
Throws:
patchJob
public void patchJob(String jobId, JobPatchParameter jobPatchParameter, Iterable
Updates the specified job. This method only replaces the properties specified with non-null values.
Parameters:
Throws:
patchJob
public void patchJob(String jobId, OnAllTasksComplete onAllTasksComplete)
Updates the specified job. This method only replaces the properties specified with non-null values.
Parameters:
Throws:
patchJob
public void patchJob(String jobId, PoolInformation poolInfo)
Updates the specified job. This method only replaces the properties specified with non-null values.
Parameters:
Throws:
patchJob
public void patchJob(String jobId, PoolInformation poolInfo, Integer priority, JobConstraints constraints, OnAllTasksComplete onAllTasksComplete, List
Updates the specified job. This method only replaces the properties specified with non-null values.
Parameters:
Throws:
patchJob
public void patchJob(String jobId, PoolInformation poolInfo, Integer priority, JobConstraints constraints, OnAllTasksComplete onAllTasksComplete, List
Updates the specified job. This method only replaces the properties specified with non-null values.
Parameters:
Throws:
terminateJob
public void terminateJob(String jobId)
Terminates the specified job, marking it as completed.
Parameters:
Throws:
terminateJob
public void terminateJob(String jobId, String terminateReason)
Terminates the specified job, marking it as completed.
Parameters:
Throws:
terminateJob
public void terminateJob(String jobId, String terminateReason, Iterable
Terminates the specified job, marking it as completed.
Parameters:
Throws:
updateJob
public void updateJob(String jobId, JobUpdateParameter param)
Parameters:
Throws:
updateJob
public void updateJob(String jobId, JobUpdateParameter param, Iterable
Updates the specified job This method performs a full replace of all updatable properties of the job. For example, if the constraints parameter is null, then the Batch service removes the job's existing constraints and replaces them with the default constraints.
Parameters:
Throws:
updateJob
public void updateJob(String jobId, PoolInformation poolInfo, Integer priority, JobConstraints constraints, OnAllTasksComplete onAllTasksComplete, List
Updates the specified job. This method performs a full replace of all updatable properties of the job. For example, if the constraints parameter is null, then the Batch service removes the job's existing constraints and replaces them with the default constraints.
Parameters:
Throws:
updateJob
public void updateJob(String jobId, PoolInformation poolInfo, Integer priority, JobConstraints constraints, OnAllTasksComplete onAllTasksComplete, List
Updates the specified job. This method performs a full replace of all updatable properties of the job. For example, if the constraints parameter is null, then the Batch service removes the job's existing constraints and replaces them with the default constraints.
Parameters:
Throws:
withCustomBehaviors
public IInheritedBehaviors withCustomBehaviors(Collection
Sets a collection of behaviors that modify or customize requests to the Batch service.
Parameters:
Returns:
Applies to
Commenti e suggerimenti
https://aka.ms/ContentUserFeedback.
Presto disponibile: Nel corso del 2024 verranno gradualmente disattivati i problemi di GitHub come meccanismo di feedback per il contenuto e ciò verrà sostituito con un nuovo sistema di feedback. Per altre informazioni, vedereInvia e visualizza il feedback per