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
Reads and modifies the parameters of an HFSQL cluster.
Example
// Read the DNS name of server
sDNS is string 
sDNS = HClusterParameter("clustermanager.mydomain.com", "secret", hCPDNS)
InfoBuild("Use <%1> as server address in your client applications" + ...
" to connect to the cluster.", sDNS)
Syntax

Finding out the value of a cluster parameter Hide the details

<Result> = HClusterParameter(<Coordinator> , <Password> , <Parameter>)
<Result>: Character string
Parameter value.
<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.
<Parameter>: Integer constant
Parameter to read. The possible values are:
hCPClientPortListening port of client connections.
hCPDNSCluster DNS name. This parameter is for information only.
Remark: It is important not to confuse:
  • the name identifying the cluster (corresponding to the value associated with this parameter): name that will be used to access the cluster databases.
  • the name identifying the coordinator (used in the <Coordinator> parameter): DNS name of computer where the cluster coordinator was installed.
  • the name identifying the node (not used by this function): DNS name of computer where the new HFSQL server was installed.

Modifying the value of a cluster parameter Hide the details

<Result> = HClusterParameter(<Coordinator> , <Password> , <Parameter> [, <New value>])
<Result>: Character string
Former value of parameter.
<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.
<Parameter>: Integer constant
Parameter to modify. The possible values are:
hCPClientPortListening port of client connections.
Remark: The modification of this parameter will be taken into account when restarting the cluster.
hCPDNSCluster DNS name. This parameter is for information only.
Remark: It is important not to confuse:
  • the name identifying the cluster (corresponding to the value associated with this parameter): name that will be used to access the cluster databases.
  • the name identifying the coordinator (used in the <Coordinator> parameter): DNS name of computer where the cluster coordinator was installed.
  • the name identifying the node (not used by this function): DNS name of computer where the new HFSQL server was installed.
<New value>: Optional character string
New value for the parameter.
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: 12/13/2023

Send a report | Local help