Previous Topic

Next Topic

Book Contents

Book Index

Event Collector Service

The OSGi Event Admin bundle registers a com.prosyst.mbs.services.event.tracker.EventCollector service to provide the optional functionality for caching events and discarding old ones. The service provides two options of accessing already dispatched events:

The registration of the service is optional and possible only if its system property is set to true. For more details and examples on how to use this optional functionality refer to the Event Collector Developer Guide.

System Properties

If you want to enable the Event Collector functionality set the system property mbs.events.collector.enabled to true. With another property – mbs.events.collector.limit you define a reasonable number for events to be cached and the older events to be discarded – refer to the Setup Guide.

Registering Bundle

The service is registered by OSGi Event Аdmin bundlecom.prosyst.mbs.osgi.eventadmin only if its system property is set to true as described above.