Package org.jnode.work

Examples of org.jnode.work.Work


     */
    public final void deviceStarted(final Device device) {
        if (device.implementsAPI(FSBlockDeviceAPI.class)) {
            // add it to the queue of devices to be mounted only if the action
            // is not already pending
            WorkUtils.add(new Work("Mounting " + device.getId()) {
                public void execute() {
                    asyncDeviceStarted(device);
                }
            });
        }
View Full Code Here


    protected void startDevice() throws DriverException {
        try {
            final Device dev = getDevice();
            dev.getManager().rename(dev, IDEControllerAPI.DEVICE_PREFIX, true);
            startDriver();
            WorkUtils.add(new Work("IDE.registerDevices") {
                public void execute() {
                    try {
                        registerDevices();
                    } catch (IDEException ex) {
                        log.error("Error starting IDE devices", ex);
View Full Code Here

     * @throws PluginException
     */
    public void start() throws PluginException {
        try {
            InitialNaming.bind(NAME, this);
            WorkUtils.add(new Work("Start device manager") {
                public void execute() {
                    loadExtensions();
                }
            });
        } catch (NamingException ex) {
View Full Code Here

        this.monitor = new NetDeviceMonitor(processor, config);
        try {
            InitialNaming.bind(IPv4ConfigurationService.NAME, service);
            devMan = DeviceUtils.getDeviceManager();
            devMan.addListener(monitor);
            WorkUtils.add(new Work("Network device configuration") {
                public void execute() {
                    monitor.configureDevices(devMan);
                }
            });
        } catch (NamingException ex) {
View Full Code Here

            pciBusDevice.registerAPI(PCIBusAPI.class, this);
            pciBusDevice.registerAPI(DeviceInfoAPI.class, this);
            // Find the PCI devices
            devices = probeDevices();
            // Start the PCI devices
            WorkUtils.add(new Work("Starting PCI devices") {

                public void execute() {
                    startDevices(devices);
                }
            });
View Full Code Here

            }
        }
        // Register all non-bridges
        for (final PCIDevice dev : devices) {
            if (!dev.isBridge()) {
                WorkUtils.add(new Work(dev.getId()) {
                    public void execute() {
                        try {
                            devMan.register(dev);
                        } catch (DeviceAlreadyRegisteredException ex) {
                            log.error("Cannot start " + dev.getId(), ex);
View Full Code Here

TOP

Related Classes of org.jnode.work.Work

Copyright © 2018 www.massapicom. 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.