PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
WinDevWebDev - Server codeWebDev - Browser codeWinDev MobileReports and QueriesWindowsLinuxWindows MobileWindows PhoneWindows Store appsAndroidAndroid Widget iPhone/iPadJavaPHPAjaxUser code (UMC)External languageHFSQLHFSQL Client/ServerStored proceduresHyper File 5.5OLE DBODBCNative Accesses

HClusterNodeInfo (Function)
In French: HClusterInfoNoeud

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.")
CASE ELSE
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 node 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:

ValueStatus of the node
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 being synchronized.
6The node is enabled.
7The node is being stopped.
8The status of the node cannot be defined.
<Coordinator>: Character string (with quotes)
DNS name of the computer where the coordinator of the cluster is installed.
<Password>: Character string (with quotes)
Password used to connect to the coordinator. This password was given when installing the cluster.

Components
Windows Mobile wp190hf.dll
Minimum version required
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment