Share via


ICluster::ListJobsOnNode method

Retrieves all jobs that are running on the specified node.

Syntax

HRESULT ListJobsOnNode(
  [in]  BSTR               NodeName,
  [out] IClusterEnumerable **pRetVal
);

Parameters

  • NodeName [in]
    The name of the node.

  • pRetVal [out]
    An IClusterEnumerable interface that contains the collection of jobs. To retrieve the list of IJob interfaces, call the IClusterEnumerable::GetEnumerator method. The variant type of each item is VT_DISPATCH. Query the pdispVal member of the variant for the IJob interface. The enumerable object is empty when there are no jobs to return.

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