Class CommandQueue

java.lang.Object
com.netscape.cmscore.apps.CommandQueue
All Implemented Interfaces:
Runnable

public class CommandQueue extends Object implements Runnable
Command queue for registration and unregistration process for clean shutdown.
  • Field Details

    • mCommandQueue

      public static Hashtable<CMSRequest,javax.servlet.Servlet> mCommandQueue
    • mShuttingDown

      public static boolean mShuttingDown
  • Constructor Details

    • CommandQueue

      public CommandQueue()
  • Method Details

    • run

      public void run()
      Overrides Thread.run(), calls batchPublish().
      Specified by:
      run in interface Runnable
    • registerProcess

      public boolean registerProcess(CMSRequest currentRequest, javax.servlet.Servlet currentServlet)
      Registers a thread into the command queue.
      Parameters:
      currentRequest - request object
      currentServlet - servlet that serves the request object
    • unRegisterProccess

      public void unRegisterProccess(Object currentRequest, Object currentServlet)
      UnRegisters a thread from the command queue.
      Parameters:
      currentRequest - request object
      currentServlet - servlet that serves the request object