Examples of DeviceManager


Examples of org.jnode.driver.DeviceManager

    /**
     * @see org.jnode.plugin.Plugin#startPlugin()
     */
    protected void startPlugin() throws PluginException {
        try {
            final DeviceManager dm = DeviceUtils.getDeviceManager();
            dm.addListener(this);
            final Collection<Device> devs = new ArrayList<Device>(dm.getDevices());
            for (Device dev : devs) {
                addListeners(dev);
            }
        } catch (NameNotFoundException ex) {
            throw new PluginException(ex);
View Full Code Here

Examples of org.jnode.driver.DeviceManager

    /**
     * @see org.jnode.plugin.Plugin#stopPlugin()
     */
    protected void stopPlugin() throws PluginException {
        try {
            final DeviceManager dm = DeviceUtils.getDeviceManager();
            dm.removeListener(this);
            final Collection<Device> devs = dm.getDevices();
            for (Device dev : devs) {
                removeListeners(dev);
            }
        } catch (NameNotFoundException ex) {
            throw new PluginException(ex);
View Full Code Here

Examples of org.jnode.driver.DeviceManager

    /**
     * Unregister all PCI devices from the device manager.
     */
    public void stopDevice() throws DriverException {
        // Stop & unregister all PCI devices
        DeviceManager devMan;
        try {
            devMan = InitialNaming.lookup(DeviceManager.NAME);
        } catch (NameNotFoundException ex) {
            throw new DriverException("Cannot find device manager", ex);
        }
        for (PCIDevice dev : devices) {
            log.debug("Stopping and unregistering device " + dev.getId());
            try {
                devMan.unregister(dev);
            } catch (DriverException ex) {
                throw new DriverException("Driver exception during unregister",
                    ex);
            }
        }
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.