Hello guys,

we are implementing some code around Karaf Cellar (an EventHandler), which is using ClusterBundleEvent. In most of the cases the ClusterBundleEvent.getSourceNode() is null, so in case of bundle operations via org.apache.karaf.cellar.bundle.management.internal.CellarBundleMBeanImpl we are not able to distinguish between "local" and "external" events (i.e. triggered from the same node or from other cluster nodes).

The source node is only set in:
 - BundleSynchronizer.push()
 - LocalBundleListener.bundleChanged()

but not in the CellarBundleMBeanImpl and 4 corresponding shell commands.

Is there any reason of not setting that node info in the above mentioned cases?
If no, may I submit a pull request with the changes?

Thank you in advance!

Kind regards
Sergiy


--
Sergiy Shyrkov
Software Architect
Jahia Solutions Group SA
http://www.jahia.com

Reply via email to