ICluster.AddTask Method
Adds the specified task to the specified job.
Namespace: Microsoft.ComputeCluster
Assembly: CcpAPI (in ccpapi.dll)
Usage
Syntax
'Declaration
Function AddTask ( _
jobId As Integer, _
task As ITask _
) As Integer
int AddTask (
int jobId,
ITask task
)
int AddTask (
int jobId,
ITask^ task
)
int AddTask (
int jobId,
ITask task
)
function AddTask (
jobId : int,
task : ITask
) : int
Parameters
- jobId
The job identifier. The ICluster.AddJob method returns this value. If you have a job object that has already been added to the cluster, you can access the IJob.Id property to get the identifier.
- task
An ITask interface of the task that you want to add to the job. To create a task, call the ICluster.CreateTask, ICluster.CreateTaskFromXml, or ICluster.CreateTaskFromXmlFile method.
Return Value
The task identifier. The identifier is unique within the job.
Remarks
The number of tasks that you can add to a job is limited by the size of an integer.
The task cannot be modified after it is added to the job.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Microsoft Windows Compute Cluster Server 2003, Windows Server 2003, Windows XP
Target Platforms
Microsoft Windows Compute Cluster Server 2003, Windows Server 2003 with Compute Cluster Pack Client Utilities, Windows XP with Compute Cluster Pack Client Utilities
See Also
Reference
ICluster Interface
ICluster Members
Microsoft.ComputeCluster Namespace
AddTasks
CancelTask
ListTasks