Package freenet.pluginmanager

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


      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

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.