Returns the status of a HFSQL cluster by interrogating its coordinator.
Remark: This function is reserved for an advanced use. We recommend that you use the HFSQL Control Center to manage a HFSQL cluster.
IF HClusterState("clustermanager.mydomain.com", "secret") = 5 THEN
STC_Alert = "CAUTION: the cluster is waiting for synchronization!"
<Result> = HClusterState(<Coordinator> , <Password>)
Status of the cluster. The possible values are as follows:
|0||An error occurred during the call to the coordinator.|
|1||The cluster is stopped.|
|2||The cluster is started.|
|3||The cluster is being stopped.|
|4||The cluster is being started.|
|5||All the nodes of the cluster currently connected to the coordinator are waiting to be synchronized.|
<Coordinator>: Character string
DNS name of computer where the cluster coordinator is installed.
<Password>: Character string
Password used to connect to the coordinator. This password was given when installing the cluster.
Business / UI classification: Business Logic