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)

Regex and event identification


Finally, we have to specify the cluster event. The purpose is to allow (whitelist) or block (blacklist) specific cluster events. For instance, we want to block the following:

  • The cluster event that contains a change in the feature named my-feature

  • The cluster event that contains a change in the bundle named my-bundle

So, we have to identify and declare the cluster event. To identify a cluster event, we can use the following:

  • The event identifier can be used; for instance, org.apache.karaf.cellar.groups identifies the configuration's cluster event (PID).

  • A regular expression (regex) or glob based on the event identifier can be used. Declaring events using the full qualified name can be tedious. The usage of a regex is much faster. For instance, org.apache.karaf.cellar.* identified all the configuration cluster events containing PIDs.

  • * selects all cluster events.

  • The none keyword is a reserved keyword to not select any cluster event.

The identification depends on...