Share via


ICluster::GetJobResourceUsage method

Retrieves the resource usage information for the specified job.

Syntax

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

Parameters

  • jobId [in]
    The job identifier. The IJob::get_Id and ICluster::AddJob methods return this value.

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

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::GetJobCounter

ICluster::GetTaskResourceUsage