public void startBundle(long bundleId) throws Exception { frameworkMBean.startBundle(bundleId); }
public long startBundle(FrameworkMBean osgiFrameworkProxy, String bundleName) throws Exception { echo("\n>>> Perform startBundle on Framework MBean <<<"); long bundleNumber = osgiFrameworkProxy.installBundle(bundleName); osgiFrameworkProxy.startBundle(bundleNumber); return bundleNumber; }
@Override public void updateFramework() throws IOException { getFrameworkMBean().updateFramework(); } }
public void stopBundle(FrameworkMBean osgiFrameworkProxy, long bundleNumber) throws Exception { echo("\n>>> Perform stopBundle on Framework MBean <<<"); osgiFrameworkProxy.stopBundle(bundleNumber); }
@Override public void uninstallBundle(long bundleId) throws Exception { try { frameworkMBean.uninstallBundle(bundleId); logger.info("Bundle '" + bundleId + " was uninstalled"); } catch (Exception ex) { throw new LifecycleException("Cannot uninstall " + bundleId, ex); } }
public String getSymbolicName(long bundleId) throws IOException { String result = getBundleStateMBean().getSymbolicName(bundleId); if (log.isTraceEnabled()) log.trace("getSymbolicName [bundleId=" + bundleId + "] => " + result); return result; }
public String getState(long bundleId) throws IOException { String result = getBundleStateMBean().getState(bundleId); if (log.isTraceEnabled()) log.trace("getState [bundleId=" + bundleId + "] => " + result); return result; }
public String getVersion(long bundleId) throws IOException { String result = getBundleStateMBean().getVersion(bundleId); if (log.isTraceEnabled()) log.trace("getVersion [bundleId=" + bundleId + "] => " + result); return result; }
public TabularData listBundles() throws IOException { TabularData result = getBundleStateMBean().listBundles(); if (log.isTraceEnabled()) log.trace("TabularData => " + result); return result; }
public TabularData getHeaders(long bundleId) throws IOException { TabularData result = getBundleStateMBean().getHeaders(bundleId); if (log.isTraceEnabled()) log.trace("getHeaders [bundleId=" + bundleId + "] => " + result); return result; }
@Override public long installBundle(String location) throws IOException { long result = getFrameworkMBean().installBundle(location); if (log.isTraceEnabled()) log.trace("installBundle [location=" + location + "] => " + result); return result; }
@Override public void updateBundleFromURL(long bundleId, String url) throws IOException { if (log.isTraceEnabled()) log.trace("updateBundleFromURL [bundleId=" + bundleId + ",url=" + url + "]"); getFrameworkMBean().updateBundleFromURL(bundleId, url); }
@Override public void restartFramework() throws IOException { if (log.isTraceEnabled()) log.trace("restartFramework"); getFrameworkMBean().restartFramework(); }
public boolean isFragment(long bundleId) throws IOException { boolean result = getBundleStateMBean().isFragment(bundleId); if (log.isTraceEnabled()) log.trace("isFragment [bundleId=" + bundleId + "] => " + result); return result; }
public boolean isPersistentlyStarted(long bundleId) throws IOException { boolean result = getBundleStateMBean().isPersistentlyStarted(bundleId); if (log.isTraceEnabled()) log.trace("isPersistentlyStarted [bundleId=" + bundleId + "] => " + result); return result; }
@Override public void refreshBundle(long bundleId) throws IOException { if (log.isTraceEnabled()) log.trace("refreshBundle " + bundleId); getFrameworkMBean().refreshBundle(bundleId); }
@Override public boolean resolveBundle(long bundleId) throws IOException { boolean result = getFrameworkMBean().resolveBundle(bundleId); if (log.isTraceEnabled()) log.trace("resolveBundle " + bundleId + " => " + result); return result; }
@Override public void setBundleStartLevel(long bundleId, int newlevel) throws IOException { if (log.isTraceEnabled()) log.trace("setBundleStartLevel [bundleid=" + bundleId + ",level=" + newlevel +"]"); getFrameworkMBean().setBundleStartLevel(bundleId, newlevel); }
public int getStartLevel(long bundleId) throws IOException { int result = getBundleStateMBean().getStartLevel(bundleId); if (log.isTraceEnabled()) log.trace("getStartLevel [bundleId=" + bundleId + "] => " + result); return result; }
@Override public void startBundle(long bundleId) throws IOException { if (log.isTraceEnabled()) log.trace("startBundle: " + bundleId); getFrameworkMBean().startBundle(bundleId); }