Repository: karaf Updated Branches: refs/heads/master 7566d8350 -> 90ce21682
[KARAF-4589] Add symbolic name and update location in the BundlesMBean Project: http://git-wip-us.apache.org/repos/asf/karaf/repo Commit: http://git-wip-us.apache.org/repos/asf/karaf/commit/90ce2168 Tree: http://git-wip-us.apache.org/repos/asf/karaf/tree/90ce2168 Diff: http://git-wip-us.apache.org/repos/asf/karaf/diff/90ce2168 Branch: refs/heads/master Commit: 90ce21682ed001f0e7954e2b03d721055fb50407 Parents: 7566d83 Author: Jean-Baptiste Onofré <jbono...@apache.org> Authored: Tue Aug 23 21:49:54 2016 +0200 Committer: Jean-Baptiste Onofré <jbono...@apache.org> Committed: Tue Aug 23 21:49:54 2016 +0200 ---------------------------------------------------------------------- .../karaf/bundle/core/internal/BundlesMBeanImpl.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/karaf/blob/90ce2168/bundle/core/src/main/java/org/apache/karaf/bundle/core/internal/BundlesMBeanImpl.java ---------------------------------------------------------------------- diff --git a/bundle/core/src/main/java/org/apache/karaf/bundle/core/internal/BundlesMBeanImpl.java b/bundle/core/src/main/java/org/apache/karaf/bundle/core/internal/BundlesMBeanImpl.java index 79131c1..ba710dc 100644 --- a/bundle/core/src/main/java/org/apache/karaf/bundle/core/internal/BundlesMBeanImpl.java +++ b/bundle/core/src/main/java/org/apache/karaf/bundle/core/internal/BundlesMBeanImpl.java @@ -68,9 +68,9 @@ public class BundlesMBeanImpl extends StandardMBean implements BundlesMBean { public TabularData getBundles() throws MBeanException { try { CompositeType bundleType = new CompositeType("Bundle", "OSGi Bundle", - new String[]{"ID", "Name", "Version", "Start Level", "State"}, - new String[]{"ID of the Bundle", "Name of the Bundle", "Version of the Bundle", "Start Level of the Bundle", "Current State of the Bundle"}, - new OpenType[]{SimpleType.LONG, SimpleType.STRING, SimpleType.STRING, SimpleType.INTEGER, SimpleType.STRING}); + new String[]{"ID", "Name", "Symbolic Name", "Version", "Start Level", "State", "Update Location"}, + new String[]{"ID of the Bundle", "Name of the Bundle", "Symbolic Name of the Bundle", "Version of the Bundle", "Start Level of the Bundle", "Current State of the Bundle", "Update location of the Bundle"}, + new OpenType[]{SimpleType.LONG, SimpleType.STRING, SimpleType.STRING, SimpleType.STRING, SimpleType.INTEGER, SimpleType.STRING, SimpleType.STRING}); TabularType tableType = new TabularType("Bundles", "Tables of all bundles", bundleType, new String[]{"ID"}); TabularData table = new TabularDataSupport(tableType); @@ -82,8 +82,8 @@ public class BundlesMBeanImpl extends StandardMBean implements BundlesMBean { BundleInfo info = bundleService.getInfo(bundle); String bundleStateString = info.getState().toString(); CompositeData data = new CompositeDataSupport(bundleType, - new String[]{"ID", "Name", "Version", "Start Level", "State"}, - new Object[]{info.getBundleId(), info.getSymbolicName(), info.getVersion(), info.getStartLevel(), bundleStateString}); + new String[]{"ID", "Name", "Symbolic Name", "Version", "Start Level", "State", "Update Location"}, + new Object[]{info.getBundleId(), info.getName(), info.getSymbolicName(), info.getVersion(), info.getStartLevel(), bundleStateString, info.getUpdateLocation()}); table.put(data); } catch (Exception e) { LOG.error(e.getMessage(), e);