IS API provides two modes for subscribing to the IS repository. Examples from the previous sections use the default mode in which subscribing application will get the whole information object as part of the notification message. Sometime this introduces an unnecessary overhead since some subscribers may just need to be aware that the information is been changed in the IS repository, but they might not need to read the information value at that moment. For such applications there is a way of telling to the IS that it should not pass the information value as part of the notification message.
The notification only mode can be chosen by providing a different callback function as the last parameter of the ISInfoReceiver.subscribe call. "Listing 5.3" shows how an application can do that.
2 July 1998 - WebMaster | Copyright © CERN 1998 |