Mastering PowerBuilder

HomePrevious Lesson: Course 3:: Session 23 :: Page 140
Next Lesson: Course 3:: Session 23 :: Page 160
Monitoring the Application Server

Connection object has a function GetServerinfo() function which returns the server information. As explained earlier in the ConnectBegin event script, that event returns the clients privilege. If the client that is calling the GetServerInfo() has administrative privilege, then GetServerInfo() returns information about all connections, otherwise, this function will return only the calling client’s information. This function takes an array of type ConnectionInfo structure.

Property Data type Description
Busy Boolean Whether the connection is busy or not.
CallCount Long Total number of calls made by the client
ClientID String Client’s ID
ConnectTime DateTime Connection start time
LastCallTime DateTime The date and time of the clients last request
Location String Client machine name
UserID String User id of the client connection
HomePrevious Lesson: Course 3:: Session 23 :: Page 140
Next Lesson: Course 3:: Session 23 :: Page 160