Package com.netscape.cmscore.apps
Class CommandQueue
java.lang.Object
com.netscape.cmscore.apps.CommandQueue
- All Implemented Interfaces:
Runnable
Command queue for registration and unregistration process for clean shutdown.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Hashtable
<CMSRequest, javax.servlet.Servlet> static boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
registerProcess
(CMSRequest currentRequest, javax.servlet.Servlet currentServlet) Registers a thread into the command queue.void
run()
Overrides Thread.run(), calls batchPublish().void
unRegisterProccess
(Object currentRequest, Object currentServlet) UnRegisters a thread from the command queue.
-
Field Details
-
mCommandQueue
-
mShuttingDown
public static boolean mShuttingDown
-
-
Constructor Details
-
CommandQueue
public CommandQueue()
-
-
Method Details
-
run
public void run()Overrides Thread.run(), calls batchPublish(). -
registerProcess
Registers a thread into the command queue.- Parameters:
currentRequest
- request objectcurrentServlet
- servlet that serves the request object
-
unRegisterProccess
UnRegisters a thread from the command queue.- Parameters:
currentRequest
- request objectcurrentServlet
- servlet that serves the request object
-