Share via


ICluster.ModifyJob Method

Modifies the specified job.

Namespace: Microsoft.ComputeCluster
Assembly: CcpAPI (in ccpapi.dll)

Usage

Syntax

'Declaration
Sub ModifyJob ( _
    jobId As Integer, _
    job As IJob _
)
void ModifyJob (
    int jobId,
    IJob job
)
void ModifyJob (
    int jobId, 
    IJob^ job
)
void ModifyJob (
    int jobId, 
    IJob job
)
function ModifyJob (
    jobId : int, 
    job : IJob
)

Parameters

  • jobId
    The job identifier. The ICluster.AddJob method returns this value. If you have an instance of the job that has already been added to the cluster, you can access the IJob.Id property to get the identifier.
  • job
    An IJob interface that contains the new properties of the job.

Remarks

This method overwrites all the properties of the job specified in the jobId parameter with all the properties of the job specified in the job parameter (the method does not update the tasks of the job, only its properties).

If the job is running, you must use the ICluster.ModifyJobTerm method to modify the job.

To modify single property values, call the ICluster.ModifyJobTerm method.

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
ModifyJobTerm