Share via


ICluster::GetTaskResourceUsage method

Retrieves the resource usage information for the specified task.

Syntax

HRESULT GetTaskResourceUsage(
  [in]  long           jobId,
  [in]  long           taskId,
  [out] IResourceUsage **pRetVal
);

Parameters

  • jobId [in]
    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 call the IJob::get_Id method to get the identifier.

  • taskId [in]
    The task identifier. The ITask::get_Id method returns this value.

  • pRetVal [out]
    An IResourceUsage interface that contains information about the amount of resources used by the task.

Return value

If the method succeeds, the return value is S_OK. Otherwise, the return value is an error code. To get a description of the error, call the ICluster::get_ErrorMessage method.

Requirements

Product

Compute Cluster Pack Client Utilities

Type library

Ccpapi.tlb

See also

ICluster

ICluster::GetJobResourceUsage