Class ShutdownServer

java.lang.Object
org.red5.server.service.ShutdownServer
All Implemented Interfaces:
Aware, DisposableBean, InitializingBean, ApplicationContextAware

public class ShutdownServer extends Object implements ApplicationContextAware, InitializingBean, DisposableBean
Server/service to perform orderly and controlled shutdown and clean up of Red5.
Author:
Paul Gregoire (mondain@gmail.com)
  • Field Details

    • log

      private org.slf4j.Logger log
    • port

      private int port
      Port to which the server listens for shutdown requests. Default is 9999.
    • shutdownDelay

      private int shutdownDelay
      Delay or wait time in seconds before exiting.
    • shutdownTokenFileName

      private String shutdownTokenFileName
      Name for the file containing the shutdown token
    • applicationContext

      private ApplicationContext applicationContext
      Spring Application context
    • coreContext

      private ApplicationContext coreContext
      Red5 core context
    • commonContext

      private ApplicationContext commonContext
      Red5 core context
    • contextLoader

      private ContextLoader contextLoader
      Red5 context loader
    • token

      private final String token
    • shutdown

      private AtomicBoolean shutdown
    • executor

      private ExecutorService executor
    • future

      private Future<?> future
    • jeeServer

      private LoaderBase jeeServer
  • Constructor Details

    • ShutdownServer

      public ShutdownServer()
  • Method Details