Hi Sergiy,
I already fixed that for next Cellar 4.0.1. The same happens in the
features and configs.
Regards
JB
On 06/27/2016 05:42 PM, Sergiy Shyrkov wrote:
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
--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com