Examples of FrameworkMBean


Examples of org.osgi.jmx.framework.FrameworkMBean

    @Override
    public void undeploy(Archive<?> archive) throws DeploymentException {
        BundleHandle handle = deployedBundles.remove(archive.getName());
        if (handle != null) {
            try {
                FrameworkMBean frameworkMBean = jmxSupport.getFrameworkMBean();
                frameworkMBean.uninstallBundle(handle.getBundleId());
            } catch (IOException ex) {
                log.errorf(ex, "Cannot undeploy: %s" + archive.getName());
            }
        }
    }
View Full Code Here

Examples of org.osgi.jmx.framework.FrameworkMBean

    }

    private BundleHandle installBundle(VirtualFile virtualFile) throws BundleException, IOException {
        BundleInfo info = BundleInfo.createBundleInfo(virtualFile);
        String streamURL = info.getRoot().getStreamURL().toExternalForm();
        FrameworkMBean frameworkMBean = jmxSupport.getFrameworkMBean();
        long bundleId = frameworkMBean.installBundleFromURL(info.getLocation(), streamURL);
        return new BundleHandle(bundleId, info.getSymbolicName());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.