Share via


ICluster::GetJobCounter method

Retrieves counter information for a specified job.

Syntax

HRESULT GetJobCounter(
  [in]  long        jobId,
  [out] IJobCounter **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.

  • pRetVal [out]
    An IJobCounter interface that contains information about the tasks in the job. For example, this parameter can indicate the number of tasks that are running or have finished.

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

ICluster::GetJobResourceUsage