Skip to main content

Product: OpenFusion Notification Service

Version: ALL

 

Description:

Is it possible to retrieve the instrumentation values using a Java program?

 

Resolution:

It is possible to retrieve the instrumentation properties using a Java program.

This is fully documented in the OpenFusion v4 System guide.

The mechanism also works in OpenFusion 2.5. You need to use the CORBA Process interface to access the instrumentation properties for each service.

You can do this as follows:

  1. Make sure you have imported the following packages com.prismt.orb.ObjectAdapter com.prismt.openfusion.Server.Process com.prismt.openfusion.Server.ProcessHelper
  2. Initialise the ORB
  3. Obtain a reference to the Process Interface. You need a reference to the ProcessSingleton.ior file which is in the OpenFusion installation/domains/OpenFusion/localhost/NotificationService/ProcessSingleton directory. You can use the orbs string_to_object method to get the object reference.
  4. Use the Process object’s getValue() method to retrieve the desired property values for a service instance. Chapter 17.1 of the Notification Service Guide documents the Instrumentation Properties and gives the names of the property values. The getValue() method returns an any which contains the property value. The contained value will be of the type (String, long, ulonglong, etc.) specified for the property.

#OpenFusion
#KnowledgeDocs