ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / Managing databases / HFSQL Cluster / WLanguage functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Returns the status of each cluster node by interrogating the coordinator.
Example
sListe is string 
sNom is string
nEtat is int
sListe = HClusterNodeInfo("clustermanager.mondomaine.com", "secret")
FOR EACH STRING sNoeud OF sListe SEPARATED BY CR
	sNom = ExtractString(sNoeud, 1)
	nEtat = ExtractString(sNoeud, 2)
	SWITCH nEtat 
		CASE 0
			Trace("L'état du noeud " + sNom + " est inconnu.")
		CASE 1
			Trace("Le noeud " + sNom + " est arrêté.")
		CASE 2
			Trace("Le noeud " + sNom + " est prêt à démarrer.")
		CASE 3
			Trace("Le noeud " + sNom + " est en cours de démarrage.")
		CASE 4
			Trace("Le noeud " + sNom + " est en attente d'une source de synchronisation.")
		CASE 5
			Trace("Le noeud " + sNom + " est en cours de synchronisation.")
		CASE 6
			Trace("Le noeud " + sNom + " est démarré.")
		CASE 7
			Trace("Le noeud " + sNom + " est en cours d'arrêt.")
		CASE 8
			Trace("Le noeud " + sNom + " n'a pas pu être déterminé.")
		OTHER CASE
			Trace("Le noeud " + sNom + " est dans un état inconnu (" + nEtat + ")")
	END
END
Syntax
<Result> = HClusterNodeInfo(<Coordinator> , <Password>)
<Result>: Character string
Status of the cluster nodes. The result string has the following format:
<Name of node 1> + TAB + <Status of node 1> + CR +
<Name of node 2> + TAB + <Status of node 2> + CR +
...
<Name of node N> + TAB + <Status of node N>
In this string, <Status of Node> corresponds to one of the following values:
ValueNode status
0The status of the node is unknown.
1The node is stopped.
2The node is ready to be started.
3The node is being started.
4The node is waiting for a source of synchronization.
5The node is currently synchronized.
6The node is started.
7The node is being stopped.
8The status of the node cannot be defined.
<Coordinator>: Character string
DNS name of the cluster coordinator's machine.
<Password>: Character string or Secret string
Password used to connect to the coordinator. This password was given when installing the cluster.
New in version 2025
Secret strings: If you use the secret string vault, the type of secret string used for this parameter must be "ANSI or Unicode string".
To learn more about secret strings and how to use the vault, see Secret string vault.
Business / UI classification: Business Logic
Component: wd300hf.dll
Minimum version required
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/16/2025

Send a report | Local help