|
MoleQueue 0.9.0
|
#include <molequeue/queuemanager.h>
Public Slots | |
| void | updateRemoteQueues () const |
Signals | |
| void | queueAdded (const QString &name, MoleQueue::Queue *queue) |
| void | queueRemoved (const QString &name, MoleQueue::Queue *queue) |
| void | queueRenamed (const QString &newName, MoleQueue::Queue *queue, const QString &oldName) |
Public Member Functions | |
| QueueManager (Server *parentServer=0) | |
| void | readSettings () |
| void | writeSettings () const |
| Server * | server () |
| const Server * | server () const |
| Queue * | lookupQueue (const QString &name) const |
| virtual Queue * | addQueue (const QString &queueName, const QString &queueType, bool replace=false) |
| bool | removeQueue (const Queue *queue) |
| bool | removeQueue (const QString &name) |
| QList< Queue * > | queues () const |
| QStringList | queueNames () const |
| int | numQueues () const |
| QueueListType | toQueueList () const |
| QString | queueConfigDirectory () const |
Static Public Member Functions | |
| static QStringList | availableQueues () |
| static bool | queueTypeIsValid (const QString &queueType) |
Protected Attributes | |
| QMap< QString, Queue * > | m_queues |
| Server * | m_server |
Manage a collection of Queue instances.
| Queue * lookupQueue | ( | const QString & | name | ) | const |
| name | String containing the name of the queue of interest. |
|
static |
|
static |
| queueType | Type of Queue (SGE, PBS/Torque, Local, etc) |
|
virtual |
Add a new Queue to the QueueManager. The new queueName must be unique name. The QueueManager maintains ownership of the Queue.
| queueName | Unique, user-visible name of the new Queue object. |
| queueType | The type of the new Queue object, e.g. PBS/Torque, SGE, etc/ |
| replace | Defaults to false; if true, replace any existing queues with the same name. The old queue with the same name will be deleted. |
| bool removeQueue | ( | const Queue * | queue | ) |
Remove and delete a queue from the collection.
| queue | Queue to remove. |
| bool removeQueue | ( | const QString & | name | ) |
Remove and delete a queue from the collection.
| queueName | Name of queue to remove. |
| QList< Queue * > queues | ( | ) | const |
| QStringList queueNames | ( | ) | const |
| int numQueues | ( | ) | const |
| QueueListType toQueueList | ( | ) | const |
| QString queueConfigDirectory | ( | ) | const |
|
slot |
updateRemoteQueues Request that all remote queues update the status of their jobs.
|
signal |
Emitted when a new Queue is added to the QueueManager
|
signal |
Emitted when a Queue is removed from the QueueManager
|
signal |
queueRenamed Emitted when a queue is renamed.