| Context and Deployment Descriptor > The Context Services > Monitoring Service |
Monitoring Service |
INDEX
PREVIOUS
NEXT
|
The Monitoring Service is defined by the interface IlpMonitoringService.
It provides a facility for developers to register and monitor time-consuming activities, so that all interested parties can be aware of and appropriately act upon these activities and their progress.
The Monitoring Service makes use of the ILOG JViews Maps activity monitoring API by exposing an instance of IlvThreadedActivityMonitor that is associated with each IlpContext for a given IlpGraphicComponent. This IlvThreadedActivityMonitor instance can be used to register activities and track their progress.
For more details on the use of the IlvThreadedActivityMonitor and related API, see the JViews Maps documentation, Programming with JViews Maps, section Thread Monitoring.
The Network Component - Editor Sample shows how to use the Monitoring Service.
The Monitoring Service is configured through the deployment descriptor. You can specify implementations of the IlvThreadedActivityMonitor.ActivityListener that will be added automatically to the underlying IlvThreadedActivityMonitor of the Monitoring Service, in the order in which they are specified in the deployment descriptor.
<monitoring>
<activityListeners>
<activityListener javaClass="ActivityListenerOne"/>
<activityListener javaClass="ActivityListenerTwo"/>
</activityListeners>
</monitoring>
ActivityListenerOne will be added to the IlvThreadedActivityMonitor before ActivityListenerTwo.
Check the XML schema file of the deployment descriptor (deploy.xsd) to know how to place the XML tag <monitoring> for the Monitoring Service in the deployment descriptor.
| Copyright © 1987-2007 ILOG S.A. All rights reserved. Documentation homepage. All rights reserved. Legal terms. | PREVIOUS NEXT |