Package org.red5.server.api.plugin

Examples of org.red5.server.api.plugin.IRed5Plugin.doStop()


        //get old plugin
        IRed5Plugin oldPlugin = plugins.get(pluginName);
        //if they are not the same shutdown the older one
        if (!plugin.equals(oldPlugin)) {     
          try {
            oldPlugin.doStop();
          } catch (Exception e) {
            log.warn("Exception caused when stopping old plugin", e);
          }
          //replace old one
          plugins.replace(pluginName, plugin);
View Full Code Here


    pluginReadLock.lock();
    try {
      for (Entry<String, IRed5Plugin> pluginEntry : plugins.entrySet()) {
        IRed5Plugin plugin = pluginEntry.getValue();
        try {
          plugin.doStop();
        } catch (Exception ex) {
          if (plugin != null) {
            log.warn("Plugin stop failed for: {}", plugin.getName(), ex);
          } else {
            log.warn("Plugin stop failed", ex);
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.