TelventDMS

Is Server Alive?

Discussion created by TelventDMS on Mar 14, 2011
Latest reply on Mar 16, 2011 by TelventDMS

Hello, 

 

 

 

we are implementing some high-frequency inserts, and we have data access layer to PI. Because of large volume of data, service that uses data access layer to write/read to/from PI Server has to know if server's state is good, meaning everything is working just fine. That means that service has to ask periodically if server is alive. 

 

 

 

What is the best way to check if server is alive? Server.Open tells if connection to server is opened, but can it guarantee that server is working well?

 

 

 

Following might be solution:

 

piServer.TestConnection(TestConnectionConstants.tstconServerExistence);

 

 

 

but i haven't found documentation (in my PI-SDK help file it is written that it is not implemented yet, and there is nothing about trappable errors).

 

Any help or ideas would be much appreciated.

Outcomes