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>mCommandQueuestatic booleanmShuttingDown
-
Constructor Summary
Constructors Constructor Description CommandQueue()Main constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanregisterProcess(ICMSRequest currentRequest, javax.servlet.Servlet currentServlet)Registers a thread into the command queue.voidrun()Overrides Thread.run(), calls batchPublish().voidunRegisterProccess(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:
runin interfacejava.lang.Runnable
-
registerProcess
public boolean registerProcess(ICMSRequest currentRequest, javax.servlet.Servlet currentServlet)
Description copied from interface:ICommandQueueRegisters a thread into the command queue.- Specified by:
registerProcessin 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:ICommandQueueUnRegisters a thread from the command queue.- Specified by:
unRegisterProccessin interfaceICommandQueue- Parameters:
currentRequest- request objectcurrentServlet- servlet that serves the request object
-
-