Freigeben über


ICluster::get_ComputeNodes method

Retrieves the list of compute nodes in a cluster.

Syntax

HRESULT get_ComputeNodes(
  [out] IClusterEnumerable **pRetVal
);

Parameters

  • pRetVal [out]
    An IClusterEnumerable interface that contains the list of compute nodes in a cluster. The order of the nodes in the collection is arbitrary. The collection will always contain at least one item for the head node. The variant type is VT_DISPATCH. Query the pdispVal member of the variant for the INode interface.

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.

Examples

For an example that calls this method, see Getting the List of Nodes in the Cluster.

Requirements

Product

Compute Cluster Pack Client Utilities

Type library

Ccpapi.tlb

See also

ICluster

ICluster::ApproveNode

ICluster::PauseNode

ICluster::ResumeNode

INode