public class QueueMgr extends FrameworkBase
QueueMgr is used to Manage all in memory queues.
NOTE: CONVERT TO JMS SPEC SO QUEUE CAN BE REPLACED WITH ANY JMS
COMPLIANT QUEUE.
active, initMessage, inProcess, jvmService, running, serviceData, totalErrors, totalMessages, totalProcessedCATEGROY_ADAPTER, CATEGROY_APP, CATEGROY_DB_CON, CATEGROY_DB_POOL, CATEGROY_ENGINE, CATEGROY_MODULE, CATEGROY_POOL_MGR, CATEGROY_QUEUE, CATEGROY_THREAD_MGR, CATEGROY_WORKER, COMMAND_DEREGISTER_KEY, COMMAND_PAUSE, COMMAND_REGISTER_KEY, COMMAND_RESTART, COMMAND_SHUTDOWN, COMMAND_START, COMMAND_STOP, FLAG_FALSE, FLAG_TRUE, PARAM_JVM_STR, PARAM_JVMID_STR, PARAM_SERVERNAME_STR, PARAM_SERVICEACTIVE_STR, PARAM_SERVICECATAGORY_STR, PARAM_SERVICENAME_STR, PARAM_SERVICERUNNING_STR, TYPE_CLUSTER, TYPE_DISPLAY_STR, TYPE_EVENT, TYPE_JVM, TYPE_JVM_STR, TYPE_MAX, TYPE_SERVER, TYPE_SERVICE| Modifier and Type | Method and Description |
|---|---|
void |
addQueue(Queue aQueue)
Create a new queue with the specified refernece name
|
void |
commit() |
void |
createQueue(String aName)
Create a new queue with the specified refernece name
|
static QueueMgr |
getInstance()
Create a new QueueMgr if one does not exist otherwise return a refernece
to the one already created - Limit one QueueMgr per Java VM
|
Queue |
getQueue(String aQueueName) |
QueueReader |
getQueueReader(String aName,
int aUserProcessHashCode)
Attaches a QueueReader to the specified queue reference name
This reader can only read Messages in a No Wait State
|
QueueReader |
getQueueReader(String aName,
int aUserProcessHashCode,
ServicesIntf aService)
Attaches a QueueReader to the specified queue reference name and starts
the reader on its own thread.
|
QueueWriter |
getQueueWriter(String aName,
int aUserProcessHashCode)
Attaches a QueueWriter to the specified queue reference name.
|
void |
register()
This method will register a new queue object
|
void |
register(Queue aQueue,
String aName)
This method will register a new queue object
|
void |
removeQueue(String aName)
This method
removeQueue will remove the queue from
the Queue Manager. |
void |
rollback() |
void |
shutdown() |
void |
startConnection() |
addInProcess, addTotalErrorNumber, addTotalMsgNumber, addTotalProcessed, deRegister, deRegister, doEventMessage, doMessage, getDefError, getInProcess, getJvmId, getJvmService, getName, getService, getServiceData, getServiceName, getStats, getTotalErrorNumber, getTotalMsgNumber, getTotalProcessed, initMessage, isActive, isRunning, register, resetTotals, setActive, setRunning, setServiceData, subtractInProcesspublic static QueueMgr getInstance()
public void addQueue(Queue aQueue)
aQueue - String Queue Reference Namepublic void createQueue(String aName)
aName - String Queue Reference Namepublic QueueWriter getQueueWriter(String aName, int aUserProcessHashCode)
aName - String Queue Reference NameaUserProcessHashCode - int Hash code of the associated QueueWriter Classpublic QueueReader getQueueReader(String aName, int aUserProcessHashCode, ServicesIntf aService)
aName - String Queue Reference NameaUserProcessHashCode - int Hash code of the associated QueueReader ClassaService - QueueReaderIntf QueueReader Objectpublic QueueReader getQueueReader(String aName, int aUserProcessHashCode)
aName - String Queue Reference NameaUserProcessHashCode - int Hash code of the associated QueueReader Classpublic void register()
register in class FrameworkBasepublic void register(Queue aQueue, String aName)
aQueue - Queue Queue ObjectaName - String Queue Service Namepublic void removeQueue(String aName)
removeQueue will remove the queue from
the Queue Manager.
aName - a String valuepublic void startConnection()
public void commit()
public void rollback()
public void shutdown()
Copyright © 2020. All rights reserved.