Class Red5Plugin

java.lang.Object
org.red5.server.plugin.Red5Plugin
All Implemented Interfaces:
IRed5Plugin

public abstract class Red5Plugin extends Object implements IRed5Plugin
Provides more features to the plug-in system.
Author:
Paul Gregoire (mondain@gmail.com)
  • Field Details

  • Constructor Details

    • Red5Plugin

      public Red5Plugin()
  • Method Details

    • doStart

      public void doStart() throws Exception
      Lifecycle method called when the plug-in is started.
      Specified by:
      doStart in interface IRed5Plugin
      Throws:
      Exception - on start error
    • doStop

      public void doStop() throws Exception
      Lifecycle method called when the plug-in is stopped.
      Specified by:
      doStop in interface IRed5Plugin
      Throws:
      Exception - on stop error
    • init

      public void init()
      Initialize the plug-in
    • getName

      public String getName()
      Returns a name / identifier for the plug-in.
      Specified by:
      getName in interface IRed5Plugin
      Returns:
      plug-in's name
    • setApplicationContext

      public void setApplicationContext(ApplicationContext context)
      Sets the top-most ApplicationContext within Red5.
      Specified by:
      setApplicationContext in interface IRed5Plugin
      Parameters:
      context - application context
    • getServer

      public Server getServer()
      Return the server reference.
      Returns:
      server
    • setServer

      public void setServer(Server server)
      Sets a reference to the server.
      Specified by:
      setServer in interface IRed5Plugin
      Parameters:
      server - server
    • setApplication

      public void setApplication(MultiThreadedApplicationAdapter application)
      Set the application making use of this plug-in.
      Parameters:
      application - application