Package org.jnode.plugin

Examples of org.jnode.plugin.Plugin


        registerArguments(ARG_ACTION);
    }

    public void execute() throws NameNotFoundException, PluginException {
        final PluginManager mgr = InitialNaming.lookup(PluginManager.NAME);
        final Plugin p =
            mgr.getRegistry().getPluginDescriptor("org.jnode.fs.jifs.def").getPlugin();
        switch (ARG_ACTION.getValue()) {
            case start:
                p.start();
                break;
            case stop:
                p.stop();
                break;
            case restart:
                p.stop();
                p.start();
                break;
        }
    }
View Full Code Here


     * @return
     */
    private boolean isStartPluginsFinished() {
        for (PluginDescriptor descr : registry) {
            try {
                final Plugin pi = descr.getPlugin();
                if (pi.isActive()) {
                    if (!pi.isStartFinished()) {
                        return false;
                    }
                }
            } catch (PluginException ex) {
                // Ignore
View Full Code Here

     * List of started but unfinished plugins.
     */
    private void listUnfinishedPlugins() {
        for (PluginDescriptor descr : registry) {
            try {
                final Plugin pi = descr.getPlugin();
                if (pi.isActive()) {
                    if (!pi.isStartFinished()) {
                        BootLogInstance.get().error("Plugin " + descr.getId()
                            + " has not yet finished");
                    }
                }
            } catch (PluginException ex) {
View Full Code Here

TOP

Related Classes of org.jnode.plugin.Plugin

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.