Package com.netscape.cmscore.request
Class RequestSubsystem
- java.lang.Object
-
- com.netscape.cmscore.request.RequestSubsystem
-
public class RequestSubsystem extends java.lang.Object
RequestSubsystemThis class is responsible for managing storage of request objects in the local database.
TODO: review this It provides: + registration of LDAP/JAVA mapping classes with the DBSubsystem + creation of RequestQueue storage in the database + retrieval of existing RequestQueue objects from the database
- Version:
- $Revision$, $Date$
- Author:
- thayes
-
-
Constructor Summary
Constructors Constructor Description RequestSubsystem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DBSSession
createDBSSession()
void
createRequestQueue(java.lang.String name)
Creates a new request queue.IConfigStore
getConfigStore()
java.lang.String
getId()
Implements ISubsystem.getIdvoid
init(IConfigStore config, DBSubsystem dbSubsystem)
protected java.lang.String
makeQueueName(java.lang.String name)
void
setId(java.lang.String id)
void
shutdown()
void
startup()
Implements ISubsystem.startup
-
-
-
Field Detail
-
logger
public static org.slf4j.Logger logger
-
ID
public static final java.lang.String ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
createRequestQueue
public void createRequestQueue(java.lang.String name) throws EBaseException
Creates a new request queue. (Currently unimplemented. Just use getRequestQueue to create an in-memory queue.)- Parameters:
name
- The name of the queue object. This name can be used in getRequestQueue to retrieve the queue later.- Throws:
EBaseException
- failed to create request queue
-
getId
public java.lang.String getId()
Implements ISubsystem.getId- See Also:
ISubsystem.getId()
-
setId
public void setId(java.lang.String id) throws EBaseException
- Throws:
EBaseException
-
init
public void init(IConfigStore config, DBSubsystem dbSubsystem)
-
startup
public void startup()
Implements ISubsystem.startup- See Also:
ISubsystem.startup()
-
shutdown
public void shutdown()
-
getConfigStore
public IConfigStore getConfigStore()
-
createDBSSession
protected DBSSession createDBSSession() throws EBaseException
- Throws:
EBaseException
-
makeQueueName
protected java.lang.String makeQueueName(java.lang.String name)
-
-