#include <molequeue/queuemanager.h>
Manage a collection of Queue instances.
- Author
- David C. Lonie
const Server* server |
( |
| ) |
const |
Queue* lookupQueue |
( |
const QString & |
name | ) |
const |
- Parameters
-
name | String containing the name of the queue of interest. |
- Returns
- The requested Queue, or NULL if none exist with that name.
static QStringList availableQueues |
( |
| ) |
|
|
static |
- Returns
- A list of available queues types (e.g. PBS/Torque, SGE, etc.)
static bool queueTypeIsValid |
( |
const QString & |
queueType | ) |
|
|
static |
- Parameters
-
queueType | Type of Queue (SGE, PBS/Torque, Local, etc) |
- Returns
- True if the queue can be instantiated, false otherwise.
virtual Queue* addQueue |
( |
const QString & |
queueName, |
|
|
const QString & |
queueType, |
|
|
bool |
replace = false |
|
) |
| |
|
virtual |
Add a new Queue to the QueueManager. The new queueName must be unique name. The QueueManager maintains ownership of the Queue.
- Parameters
-
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. |
- Returns
- A pointer to the new queue if successful, NULL otherwise.
- See Also
- queueTypeIsKnown
-
availableQueueTypes
bool removeQueue |
( |
const Queue * |
queue | ) |
|
Remove and delete a queue from the collection.
- Parameters
-
- Returns
- True if queue exists, false otherwise.
bool removeQueue |
( |
const QString & |
name | ) |
|
Remove and delete a queue from the collection.
- Parameters
-
queueName | Name of queue to remove. |
- Returns
- True if queue exists, false otherwise.
QList<Queue *> queues |
( |
| ) |
const |
QStringList queueNames |
( |
| ) |
const |
QueueListType toQueueList |
( |
| ) |
const |
- Returns
- A QueueListType container describing the queues and their associated programs.
QString queueConfigDirectory |
( |
| ) |
const |
- Returns
- The directory path where queue configuration files are stored.
void updateRemoteQueues |
( |
| ) |
const |
|
slot |
updateRemoteQueues Request that all remote queues update the status of their jobs.
void queueRenamed |
( |
const QString & |
newName, |
|
|
MoleQueue::Queue * |
queue, |
|
|
const QString & |
oldName |
|
) |
| |
|
signal |
queueRenamed Emitted when a queue is renamed.
The documentation for this class was generated from the following file: