共用方式為


JobOperations Class

Definition

Performs operations on Azure Batch jobs.

public class JobOperations : Microsoft.Azure.Batch.IInheritedBehaviors
type JobOperations = class
    interface IInheritedBehaviors
Public Class JobOperations
Implements IInheritedBehaviors
Inheritance
JobOperations
Implements

Constructors

JobOperations()

Properties

CustomBehaviors

Gets or sets a list of behaviors that modify or customize requests to the Batch service made via this JobOperations.

Methods

AddTask(String, CloudTask, IEnumerable<BatchClientBehavior>)

Adds a single task to a job. To add multiple tasks, use JobOperations.AddTaskAsync.

AddTask(String, IEnumerable<CloudTask>, BatchClientParallelOptions, ConcurrentBag<ConcurrentDictionary<Type,IFileStagingArtifact>>, Nullable<TimeSpan>, IEnumerable<BatchClientBehavior>)

Adds tasks to a job.

AddTaskAsync(String, CloudTask, ConcurrentDictionary<Type,IFileStagingArtifact>, IEnumerable<BatchClientBehavior>, CancellationToken)

Adds a single task to a job. To add multiple tasks, use JobOperations.AddTaskAsync.

AddTaskAsync(String, IEnumerable<CloudTask>, BatchClientParallelOptions, ConcurrentBag<ConcurrentDictionary<Type,IFileStagingArtifact>>, Nullable<TimeSpan>, IEnumerable<BatchClientBehavior>)

Adds tasks to a job.

CopyNodeFileContentToStream(String, String, String, Stream, GetFileRequestByteRange, IEnumerable<BatchClientBehavior>)

Copies the contents of a file from the specified task's directory on its compute node to the given Stream.

CopyNodeFileContentToStreamAsync(String, String, String, Stream, GetFileRequestByteRange, IEnumerable<BatchClientBehavior>, CancellationToken)

Copies the contents of a file from the specified task's directory on its compute node to the given Stream.

CopyNodeFileContentToString(String, String, String, Encoding, GetFileRequestByteRange, IEnumerable<BatchClientBehavior>)

Reads the contents of a file from the specified task's directory on its compute node into a string.

CopyNodeFileContentToStringAsync(String, String, String, Encoding, GetFileRequestByteRange, IEnumerable<BatchClientBehavior>, CancellationToken)

Reads the contents of a file from the specified task's directory on its compute node into a string.

CreateJob()

Creates an instance of CloudJob that is unbound and does not have a consistency relationship to any job in the Batch Service.

CreateJob(String, PoolInformation)

Creates an instance of CloudJob that is unbound and does not have a consistency relationship to any job in the Batch Service.

DeleteJob(String, IEnumerable<BatchClientBehavior>)

Deletes the specified job.

DeleteJobAsync(String, IEnumerable<BatchClientBehavior>, CancellationToken)

Deletes the specified job.

DeleteNodeFile(String, String, String, Nullable<Boolean>, IEnumerable<BatchClientBehavior>)

Deletes the specified file from the task's directory on its compute node.

DeleteNodeFileAsync(String, String, String, Nullable<Boolean>, IEnumerable<BatchClientBehavior>, CancellationToken)

Deletes the specified file from the task's directory on its compute node.

DeleteTask(String, String, IEnumerable<BatchClientBehavior>)

Deletes the specified task.

DeleteTaskAsync(String, String, IEnumerable<BatchClientBehavior>, CancellationToken)

Deletes the specified task.

DisableJob(String, DisableJobOption, IEnumerable<BatchClientBehavior>)

Disables the specified job. Disabled jobs do not run new tasks, but may be re-enabled later.

DisableJobAsync(String, DisableJobOption, IEnumerable<BatchClientBehavior>, CancellationToken)

Disables the specified job. Disabled jobs do not run new tasks, but may be re-enabled later.

EnableJob(String, IEnumerable<BatchClientBehavior>)

Enables the specified job, allowing new tasks to run.

EnableJobAsync(String, IEnumerable<BatchClientBehavior>, CancellationToken)

Enables the specified job, allowing new tasks to run.

GetJob(String, DetailLevel, IEnumerable<BatchClientBehavior>)

Gets the specified CloudJob.

GetJobAsync(String, DetailLevel, IEnumerable<BatchClientBehavior>, CancellationToken)

Gets the specified CloudJob.

GetJobTaskCounts(String, IEnumerable<BatchClientBehavior>)

Gets the task counts for the specified job.

GetJobTaskCountsAsync(String, IEnumerable<BatchClientBehavior>, CancellationToken)

Gets the task counts for the specified job.

GetNodeFile(String, String, String, IEnumerable<BatchClientBehavior>)

Gets the specified NodeFile from the specified task's directory on its compute node.

GetNodeFileAsync(String, String, String, IEnumerable<BatchClientBehavior>, CancellationToken)

Gets the specified NodeFile from the specified task's directory on its compute node.

GetTask(String, String, DetailLevel, IEnumerable<BatchClientBehavior>)

Gets the specified CloudTask.

GetTaskAsync(String, String, DetailLevel, IEnumerable<BatchClientBehavior>, CancellationToken)

Gets the specified CloudTask.

ListJobPreparationAndReleaseTaskStatus(String, DetailLevel, IEnumerable<BatchClientBehavior>)

Enumerates the status of JobPreparationTask and JobReleaseTask tasks for the specified job.

ListJobs(DetailLevel, IEnumerable<BatchClientBehavior>)

Enumerates the jobs in the Batch account.

ListNodeFiles(String, String, Nullable<Boolean>, DetailLevel, IEnumerable<BatchClientBehavior>)

Enumerates the NodeFiles in the specified task's directory on its compute node.

ListSubtasks(String, String, DetailLevel, IEnumerable<BatchClientBehavior>)

Enumerates the subtask information of the specified task.

ListTasks(String, DetailLevel, IEnumerable<BatchClientBehavior>)

Enumerates the tasks of the specified job.

ReactivateTask(String, String, IEnumerable<BatchClientBehavior>)

Reactivates a task, allowing it to run again even if its retry count has been exhausted.

ReactivateTaskAsync(String, String, IEnumerable<BatchClientBehavior>, CancellationToken)

Reactivates a task, allowing it to run again even if its retry count has been exhausted.

TerminateJob(String, String, IEnumerable<BatchClientBehavior>)

Terminates the specified job, marking it as completed.

TerminateJobAsync(String, String, IEnumerable<BatchClientBehavior>, CancellationToken)

Terminates the specified job, marking it as completed.

TerminateTask(String, String, IEnumerable<BatchClientBehavior>)

Terminates the specified task.

TerminateTaskAsync(String, String, IEnumerable<BatchClientBehavior>, CancellationToken)

Terminates the specified task.

Applies to

See also