ServiceGetList
- Last UpdatedJul 18, 2023
- 1 minute read
Determines the service type(s), cluster name(s), and service name(s) of all services currently running in the component that called this function. It also determines if the client component is running.
If you call this function from a component that is running purely as a Control Client or View-only Client, the function will return "Client".
If you call this function from a single-process component that includes:
-
I/O server called IOServ1 on ClustA
-
Trend server called Trend1 on ClustB
-
Alarm server called Alarm1 on ClustA
-
Report server called Report1 on ClustB
-
Client
The function will return a string similar to:
"IOServer.ClustA.IOServ1,Trend.ClustB.Trend1,Alarm.ClustA.Alarm1,Report.ClustB.Report1,Client"
The order of components in the string is not fixed so the exact string may vary from the above. You should parse the returned string or alternatively use ProcessIsClient or ProcessIsServer to find the information you need.
Syntax
ServiceGetList()
Return Value
String in the form:
serviceType1.clusterName1.serviceName1,serviceType2.clusterName2.serviceName2, ... ,Client
Related Functions
ProcessIsClient, ProcessIsServer, ServerInfo, ServerInfoEx