ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / Managing databases / HFSQL Cluster / WLanguage functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Returns the status of each cluster node by interrogating the coordinator.
Example
sList is string
sName is string
nStatus is int
 
sList = HClusterNodeInfo("clustermanager.mydomain.com", "secret")
FOR EACH STRING sNode OF sList SEPARATED BY CR
sName = ExtractString(sNode, 1)
nStatus = ExtractString(sNode, 2)
 
SWITCH nStatus
CASE 0
Trace("The status of the node " + sName + ...
" is unknown.")
CASE 1
Trace("The node " + sName + ...
" is stopped.")
CASE 2
Trace("The node " + sName + ...
" is ready to be started.")
CASE 3
Trace("The node " + sName + ...
" is being started.")
CASE 4
Trace("The node " + sName + ...
" is waiting for a source of synchronization.")
CASE 5
Trace("The node " + sName + ...
" is being synchronized.")
CASE 6
Trace("The node " + sName + ...
" is enabled.")
CASE 7
Trace("The node " + sName + ...
" is being stopped.")
CASE 8
Trace("The node " + sName + ...
" could not be defined.")
OTHER CASE
Trace("The node " + sName + ...
" has an unknown status (" + nStatus + ")")
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 enabled.
7The node is being stopped.
8The status of the node cannot be defined.
<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
Component: wd290hf.dll
Minimum version required
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/20/2023

Send a report | Local help