Freigeben über


IResourceUsage::get_AllocatedNodes method

Retrieves the list of nodes that are allocated to the job or task.

Syntax

HRESULT get_AllocatedNodes(
  [out] INameValueCollection **pRetVal
);

Parameters

  • pRetVal [out]
    An INameValueCollection interface that contains a list of nodes that are allocated to the job or task. To enumerate the list of INameValue interfaces, call the INameValueCollection::GetEnumerator method.

    The name member of the name/value pair contains the name of the node, and the value member contains the number of processors on the node.

Return value

If the method succeeds, the return value is S_OK. Otherwise, the return value is an error code.

Remarks

For a task, the list of required nodes (see ITask::put_RequiredNodes), or if you did not specify required nodes, the node on which the task ran.

For a job, the list of nodes that you requested for the job (see IJob::put_AskedNodes), or if you did not request nodes, the list of all nodes in the cluster.

Requirements

Product

Compute Cluster Pack Client Utilities

Type library

Ccpapi.tlb

See also

IResourceUsage