TaskOperations Class
- java.
lang. Object - IInheritedBehaviors
- com.
microsoft. azure. batch. TaskOperations
- com.
public class TaskOperations implements IInheritedBehaviors
Performs task-related operations on an Azure Batch account.
Method Summary
Method Details
createTask
public void createTask(String jobId, TaskAddParameter taskToAdd)
Adds a single task to a job.
Parameters:
Throws:
createTask
public void createTask(String jobId, TaskAddParameter taskToAdd, Iterable
Adds a single task to a job.
Parameters:
Throws:
createTasks
public void createTasks(String jobId, List
Adds multiple tasks to a job.
Parameters:
Throws:
createTasks
public void createTasks(String jobId, List
Adds multiple tasks to a job.
Parameters:
Throws:
customBehaviors
public Collection
Gets a collection of behaviors that modify or customize requests to the Batch service.
Overrides:
TaskOperations.customBehaviors()Returns:
deleteTask
public void deleteTask(String jobId, String taskId)
Deletes the specified task.
Parameters:
Throws:
deleteTask
public void deleteTask(String jobId, String taskId, Iterable
Deletes the specified task.
Parameters:
Throws:
getTask
public CloudTask getTask(String jobId, String taskId)
Gets the specified CloudTask.
Parameters:
Returns:
Throws:
getTask
public CloudTask getTask(String jobId, String taskId, DetailLevel detailLevel)
Gets the specified CloudTask.
Parameters:
Returns:
Throws:
getTask
public CloudTask getTask(String jobId, String taskId, DetailLevel detailLevel, Iterable
Gets the specified CloudTask.
Parameters:
Returns:
Throws:
listSubtasks
public List
Lists the subtasks of the specified task.
Parameters:
Returns:
Throws:
listSubtasks
public List
Lists the subtasks of the specified task.
Parameters:
Returns:
Throws:
listSubtasks
public List
Lists the subtasks of the specified task.
Parameters:
Returns:
Throws:
listTasks
public PagedList
Lists the tasks of the specified job.
Parameters:
Returns:
Throws:
listTasks
public PagedList
Lists the tasks of the specified job.
Parameters:
Returns:
Throws:
listTasks
public PagedList
Lists the tasks of the specified job.
Parameters:
Returns:
Throws:
reactivateTask
public void reactivateTask(String jobId, String taskId)
Reactivates a task, allowing it to run again even if its retry count has been exhausted.
Parameters:
Throws:
reactivateTask
public void reactivateTask(String jobId, String taskId, Iterable
Reactivates a task, allowing it to run again even if its retry count has been exhausted.
Parameters:
Throws:
terminateTask
public void terminateTask(String jobId, String taskId)
Terminates the specified task.
Parameters:
Throws:
terminateTask
public void terminateTask(String jobId, String taskId, Iterable
Terminates the specified task.
Parameters:
Throws:
updateTask
public void updateTask(String jobId, String taskId, TaskConstraints constraints)
Updates the specified task.
Parameters:
Throws:
updateTask
public void updateTask(String jobId, String taskId, TaskConstraints constraints, Iterable
Updates the specified task.
Parameters:
Throws:
withCustomBehaviors
public IInheritedBehaviors withCustomBehaviors(Collection
Sets a collection of behaviors that modify or customize requests to the Batch service.
Overrides:
TaskOperations.withCustomBehaviors(Collection<BatchClientBehavior> behaviors)Parameters:
Returns: