Package com.netscape.cmscore.apps
Class CommandQueue
- java.lang.Object
-
- com.netscape.cmscore.apps.CommandQueue
-
- All Implemented Interfaces:
ICommandQueue
,java.lang.Runnable
public class CommandQueue extends java.lang.Object implements java.lang.Runnable, ICommandQueue
register and unregister proccess for clean shutdown
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.Hashtable<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(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.
-
-
-
Field Detail
-
mCommandQueue
public static java.util.Hashtable<ICMSRequest,javax.servlet.Servlet> mCommandQueue
-
mShuttingDown
public static boolean mShuttingDown
-
-
Method Detail
-
run
public void run()
Overrides Thread.run(), calls batchPublish().- Specified by:
run
in interfacejava.lang.Runnable
-
registerProcess
public boolean registerProcess(ICMSRequest currentRequest, javax.servlet.Servlet currentServlet)
Description copied from interface:ICommandQueue
Registers a thread into the command queue.- Specified by:
registerProcess
in interfaceICommandQueue
- Parameters:
currentRequest
- request objectcurrentServlet
- servlet that serves the request object
-
unRegisterProccess
public void unRegisterProccess(java.lang.Object currentRequest, java.lang.Object currentServlet)
Description copied from interface:ICommandQueue
UnRegisters a thread from the command queue.- Specified by:
unRegisterProccess
in interfaceICommandQueue
- Parameters:
currentRequest
- request objectcurrentServlet
- servlet that serves the request object
-
-