Share via


ICluster.GetTaskResourceUsage Method

Retrieves the resource usage information for the specified task.

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

Usage

Syntax

'Declaration
Function GetTaskResourceUsage ( _
    jobId As Integer, _
    taskId As Integer _
) As IResourceUsage
IResourceUsage GetTaskResourceUsage (
    int jobId,
    int taskId
)
IResourceUsage^ GetTaskResourceUsage (
    int jobId, 
    int taskId
)
IResourceUsage GetTaskResourceUsage (
    int jobId, 
    int taskId
)
function GetTaskResourceUsage (
    jobId : int, 
    taskId : int
) : IResourceUsage

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.
  • taskId
    The task identifier. The ITask.Id property contains this value.

Return Value

An IResourceUsage interface that contains information about the amount of resources used by the task.

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
ICluster.GetJobResourceUsage Method