Book Image

Learning Karaf Cellar

By : Jean Baptiste Onofre, Jean-Baptiste Onofré
Book Image

Learning Karaf Cellar

By: Jean Baptiste Onofre, Jean-Baptiste Onofré

Overview of this book

Table of Contents (16 chapters)

Event handlers


When the consumer receives a cluster event's message, it delegates the message to a handler depending on the type of the cluster event.

You have one handler per type of resource that Cellar manages. The following is a list of the event handlers:

  • ConfigurationEventHandler: This is responsible for handling cluster events related to configurations (for instance, events that come from the cluster:config-* or config:* commands)

  • BundleEventHandler: This is responsible for handling cluster events related to bundles (for instance, events that come from the cluster:bundle-* or osgi:* commands)

  • FeaturesEventHandler: This is responsible for handling cluster events related to features (for instance, events that come from the cluster:feature-* or features:* commands)

  • ObrBundleEventHandler and ObrUrlEventHandler (optional): These are responsible for handling cluster events related to the OBR service (for instance, events that come from the cluster:obr-* or obr:* commands)

  • ClusterEventHandler...