You can use the AddNode() method to add an IBMTS2145_CandidateNode instance to an IBMTS2145_Cluster instance. The AddNode() method belongs to the IBMTS2145_ClusteringService class.
When invoked, the AddNode() method automatically chooses the IBMTS2145_RedundancyGroup for the candidate node. If the IBMTS2145_RedundancyGroup instances have only one existing node, the method selects the one whose identifier contains the smallest number. If no such IBMTS2145_RedundancyGroup exists, the method selects an empty IBMTS2145_RedundancyGroup whose identifier contains the smallest number.
Table 227 shows the parameters you can specify for the AddNode() method:
| Parameter | Type | Description |
|---|---|---|
| CS | COP | Defines the IBMTS2145_CandidateNode instance to be added that is in the same cluster as the IBMTS2145_CLusteringService instance |
The AddNode() method returns one of the following error codes: