isConnActive()

The function checks whether the connection to the event manager is active. The function is used in split mode to determine the active EM connection. The host the user interface is logical connected to is shown in the system overview. See chapter System overview with redundancy.

Synopsis

bool isConnActive (int manId);

Parameter

Parameter Description
manId Manager identifier

The return value of this function is only valid if the user interface is connected to only one server.

The appropriate settings can be done by changing the properties of the user interface in the console (e.g.

-data <servername> and -event<servername>). If the UI is connected to both servers, the return value isn't valid because one connection will return TRUE whereas the other one will return FALSE.

Return value

The function returns TRUE if the connection exists, otherwise FALSE.

Error

Description

The function checks whether the connection to the event manager is active. The function is used in split mode to determine the active EM connection.

Example

main()
{
  int manID = convManIdToInt(EVENT_MAN, 0); /* Integer
  corresponding to the manager identifier. See convManIdToInt() */
  int manId_2 = convManIdToInt(EVENT_MAN,0,0,2);
  /*ManagerIdentifier with replica 2*/
  bool bEventConnection = isConnActive(manId);
  /* Function call: Test if the connection is active */
  bool bEventConnection_2 = isConnActive(manId_2); /* Function
  call: Test if the connection is
  active*/ 
  DebugN(bEventConnection);
  DebugN(bEventConnection_2);
}

Assignment

Administration of managers...

Availability

CTRL