#include <QueueManager.hpp>
Public Member Functions | |
QueueTable () | |
DataQueue * | locate (const char *name) |
DataQueue * | synchronizedLocate (ServerQueueManager *manager, const char *name) |
DataQueue * | locate (SessionID id) |
DataQueue * | synchronizedLocate (ServerQueueManager *manager, SessionID id) |
DataQueue * | remove (const char *name) |
DataQueue * | remove (SessionID id) |
void | remove (DataQueue *q) |
void | removeQueue (DataQueue *current, DataQueue *previous) |
bool | isEmpty () |
void | add (DataQueue *queue) |
Protected Attributes | |
DataQueue * | queues |
Definition at line 192 of file QueueManager.hpp.
|
inline |
Definition at line 196 of file QueueManager.hpp.
References queues.
void QueueTable::add | ( | DataQueue * | queue | ) |
add a named data queue to our list.
queue | The new queue to add. |
Definition at line 449 of file QueueManager.cpp.
References DataQueue::next, and queues.
Referenced by ServerQueueManager::createNamedQueue(), ServerQueueManager::createSessionQueue(), ServerQueueManager::createUniqueQueue(), ServerQueueManager::getSessionQueue(), ServerQueueManager::openNamedQueue(), and remove().
|
inline |
Definition at line 228 of file QueueManager.hpp.
References queues.
Referenced by ServerQueueManager::isStoppable().
DataQueue * QueueTable::locate | ( | const char * | name | ) |
locate a named data queue
name | The target data queue name. |
Definition at line 289 of file QueueManager.cpp.
References DataQueue::next, DataQueue::queueName, queues, and Utilities::strCaselessCompare().
Referenced by ServerQueueManager::addToNamedQueue(), ServerQueueManager::cleanupProcessResources(), ServerQueueManager::clearNamedQueue(), ServerQueueManager::createNamedQueue(), ServerQueueManager::createSessionQueue(), ServerQueueManager::createUniqueQueue(), ServerQueueManager::deleteNamedQueue(), ServerQueueManager::getNamedQueueCount(), ServerQueueManager::getSessionQueue(), ServerQueueManager::openNamedQueue(), ServerQueueManager::queryNamedQueue(), and synchronizedLocate().
locate a session data queue
id | The session ID of the queue. |
Definition at line 330 of file QueueManager.cpp.
References DataQueue::next, queues, and DataQueue::session.
DataQueue * QueueTable::remove | ( | const char * | name | ) |
locate and remove a named data queue
name | The queue name. |
Definition at line 370 of file QueueManager.cpp.
References DataQueue::next, DataQueue::queueName, queues, removeQueue(), and Utilities::strCaselessCompare().
Referenced by ServerQueueManager::deleteNamedQueue(), and ServerQueueManager::deleteSessionQueue().
void QueueTable::remove | ( | DataQueue * | q | ) |
locate and remove a specific data queue
q | The queue to remove. |
Definition at line 396 of file QueueManager.cpp.
References DataQueue::next, queues, and removeQueue().
locate a session data queue
id | The session identifier of the queue to remove. |
Definition at line 421 of file QueueManager.cpp.
References add(), DataQueue::next, queues, removeQueue(), and DataQueue::session.
Definition at line 215 of file QueueManager.hpp.
References DataQueue::next, and queues.
Referenced by remove().
DataQueue * QueueTable::synchronizedLocate | ( | ServerQueueManager * | manager, |
const char * | name | ||
) |
locate a named data queue, with session manager locking
name | The target data queue name. |
Definition at line 316 of file QueueManager.cpp.
References locate(), and ServerQueueManager::lock.
Referenced by ServerQueueManager::pullFromNamedQueue().
DataQueue * QueueTable::synchronizedLocate | ( | ServerQueueManager * | manager, |
SessionID | id | ||
) |
locate a session data queue, with session manager locking
id | The session ID of the queue. |
Definition at line 356 of file QueueManager.cpp.
References locate(), and ServerQueueManager::lock.
|
protected |
Definition at line 237 of file QueueManager.hpp.
Referenced by add(), isEmpty(), locate(), QueueTable(), remove(), and removeQueue().