Package org.jnode.driver

Examples of org.jnode.driver.DeviceManager.stop()


                log.error("Cannot create tmp on ramdisk");
            }

            // restart the device
            log.info("Restart initrd ramdisk");
            dm.stop(dev);
            dm.start(dev);

            log.info("/jnode ready.");
        } catch (NameNotFoundException e) {
            throw new PluginException(e);
View Full Code Here


        Formatter<T> formatter = getFormatter();
        formatter.format(dev);

        // restart the device
        final DeviceManager dm = InitialNaming.lookup(DeviceManager.NAME);
        dm.stop(dev);
        dm.start(dev);
    }
}
View Full Code Here

        reloadMBR();

        // restart the device
        try {
            DeviceManager devMan = DeviceUtils.getDeviceManager();
            devMan.stop(current);
            devMan.start(current);
        } catch (DeviceNotFoundException e) {
            throw new Exception("error while restarting device", e);
        } catch (DriverException e) {
            throw new Exception("error while restarting device", e);
View Full Code Here

    public static void restart(Device device) {
        DeviceManager devMan;
        try {
            devMan = org.jnode.driver.DeviceUtils.getDeviceManager();

            devMan.stop(device);
            devMan.start(device);
        } catch (NameNotFoundException e) {
            log.error(e);
        } catch (DeviceNotFoundException e) {
            log.error(e);
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.