Class CommandQueue

  • All Implemented Interfaces:
    com.netscape.certsrv.apps.ICommandQueue, java.lang.Runnable

    public class CommandQueue
    extends java.lang.Object
    implements java.lang.Runnable, com.netscape.certsrv.apps.ICommandQueue
    register and unregister proccess for clean shutdown
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.util.Hashtable<com.netscape.certsrv.common.ICMSRequest,​javax.servlet.Servlet> mCommandQueue  
      static boolean mShuttingDown  
    • Constructor Summary

      Constructors 
      Constructor Description
      CommandQueue()
      Main constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean registerProcess​(com.netscape.certsrv.common.ICMSRequest currentRequest, javax.servlet.Servlet currentServlet)
      Registers a thread into the command queue.
      void run()
      Overrides Thread.run(), calls batchPublish().
      void unRegisterProccess​(java.lang.Object currentRequest, java.lang.Object currentServlet)
      UnRegisters a thread from the command queue.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • mCommandQueue

        public static java.util.Hashtable<com.netscape.certsrv.common.ICMSRequest,​javax.servlet.Servlet> mCommandQueue
      • mShuttingDown

        public static boolean mShuttingDown
    • Constructor Detail

      • CommandQueue

        public CommandQueue()
        Main constructor.
    • Method Detail

      • run

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

        public boolean registerProcess​(com.netscape.certsrv.common.ICMSRequest currentRequest,
                                       javax.servlet.Servlet currentServlet)
        Description copied from interface: com.netscape.certsrv.apps.ICommandQueue
        Registers a thread into the command queue.
        Specified by:
        registerProcess in interface com.netscape.certsrv.apps.ICommandQueue
        Parameters:
        currentRequest - request object
        currentServlet - servlet that serves the request object
      • unRegisterProccess

        public void unRegisterProccess​(java.lang.Object currentRequest,
                                       java.lang.Object currentServlet)
        Description copied from interface: com.netscape.certsrv.apps.ICommandQueue
        UnRegisters a thread from the command queue.
        Specified by:
        unRegisterProccess in interface com.netscape.certsrv.apps.ICommandQueue
        Parameters:
        currentRequest - request object
        currentServlet - servlet that serves the request object