Examples of stopPlugin()


Examples of com.gitblit.manager.IGitblit.stopPlugin()

        PluginWrapper pluginWrapper = getPlugin(id);
        if (pluginWrapper == null) {
          throw new UnloggedFailure(String.format("Plugin %s is not installed!", id));
        }

        PluginState state = gitblit.stopPlugin(pluginWrapper.getPluginId());
        if (PluginState.STOPPED.equals(state)) {
          stdout.println(String.format("Stopped %s", pluginWrapper.getPluginId()));
        } else {
          throw new UnloggedFailure(1, String.format("Failed to stop %s", pluginWrapper.getPluginId()));
        }
View Full Code Here

Examples of freenet.pluginmanager.PluginInfoWrapper.stopPlugin()

        PluginInfoWrapper pi = node.pluginManager.getPluginInfo(plugname);
        if (pi == null) {
          handler.outputHandler.queue(new ProtocolErrorMessage(ProtocolErrorMessage.NO_SUCH_PLUGIN, false, "Plugin '"+ plugname + "' does not exist or is not a FCP plugin", identifier, false));
        } else {
          String source = pi.getFilename();
          pi.stopPlugin(node.pluginManager, maxWaitTime, true);
          if (purge) {
            node.pluginManager.removeCachedCopy(pi.getFilename());
          }
          pi = node.pluginManager.startPluginAuto(source, store);
          if (pi == null) {
View Full Code Here

Examples of freenet.pluginmanager.PluginInfoWrapper.stopPlugin()

      public void run() {
        PluginInfoWrapper pi = node.pluginManager.getPluginInfo(plugname);
        if (pi == null) {
          handler.outputHandler.queue(new ProtocolErrorMessage(ProtocolErrorMessage.NO_SUCH_PLUGIN, false, "Plugin '"+ plugname + "' does not exist or is not a FCP plugin", identifier, false));
        } else {
          pi.stopPlugin(node.pluginManager, maxWaitTime, false);
          if (purge) {
            node.pluginManager.removeCachedCopy(pi.getFilename());
          }
          handler.outputHandler.queue(new PluginRemovedMessage(plugname, identifier));
        }
View Full Code Here

Examples of org.apache.log4j.plugins.PluginRegistry.stopPlugin()

                  PluginRegistry pluginRegistry = LogManager.getLoggerRepository().getPluginRegistry();
                  List list = pluginRegistry.getPlugins(Generator.class);

                  for (Iterator iter = list.iterator(); iter.hasNext();) {
                    Plugin plugin = (Plugin) iter.next();
                    pluginRegistry.stopPlugin(plugin.getName());
                  }
                }
              }).start();
            setEnabled(false);
            startTutorial.putValue("TutorialStarted", Boolean.FALSE);
View Full Code Here

Examples of org.apache.log4j.plugins.PluginRegistry.stopPlugin()

                  PluginRegistry pluginRegistry = LogManager.getLoggerRepository().getPluginRegistry();
                  List list = pluginRegistry.getPlugins(Generator.class);

                  for (Iterator iter = list.iterator(); iter.hasNext();) {
                    Plugin plugin = (Plugin) iter.next();
                    pluginRegistry.stopPlugin(plugin.getName());
                  }
                }
              }).start();
            setEnabled(false);
            startTutorial.putValue("TutorialStarted", Boolean.FALSE);
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.