nodeRole(): Integer;
The nodeRole method of the Node class returns an integer value that represents the role of the node with regard to processes and the Synchronized Database Service (SDS). The role can be one of the values listed in the following table.
Node Class Constant | Integer Value | Description |
---|---|---|
Role_Replay | 2 | Replay node role |
Role_Standard | 1 | Standard node role |
Role_Unknown | 0 | Unknown node role |
An SDS secondary server has two node objects, as follows.
A standard node object to which processes initiated on the secondary server are attached
A replay node object to which pseudo-processes representing processes on the primary server are attached
The nodeRole method allows processes initiated on SDS secondary servers to be distinguished from pseudo-processes automatically created to represent processes on the primary server, by using the