|
MoleQueue 0.9.0
|
#include <local.h>
Public Slots | |
| bool | submitJob (MoleQueue::Job job) |
| void | killJob (MoleQueue::Job job) |
| Public Slots inherited from Queue | |
| virtual bool | submitJob (MoleQueue::Job job)=0 |
| virtual void | killJob (MoleQueue::Job job)=0 |
| virtual void | setLaunchTemplate (const QString &script) |
| virtual void | setLaunchScriptName (const QString &scriptName) |
Public Member Functions | |
| QueueLocal (QueueManager *parentManager=0) | |
| QString | typeName () const |
| bool | writeJsonSettings (QJsonObject &json, bool exportOnly, bool includePrograms) const |
| bool | readJsonSettings (const QJsonObject &json, bool importOnly, bool includePrograms) |
| AbstractQueueSettingsWidget * | settingsWidget () |
| int | maxNumberOfCores () const |
| void | setMaxNumberOfCores (int cores) |
| Public Member Functions inherited from Queue | |
| Server * | server () |
| const Server * | server () const |
| QueueManager * | queueManager () |
| const QueueManager * | queueManager () const |
| virtual void | setName (const QString &newName) |
| QString | name () const |
| bool | readSettings (const QString &filePath) |
| bool | writeSettings () const |
| bool | exportSettings (const QString &fileName, bool includePrograms=true) const |
| bool | importSettings (const QString &fileName, bool includePrograms=true) |
| QString | stateFileName () const |
| bool | addProgram (Program *newProgram, bool replace=false) |
| bool | removeProgram (Program *programToRemove) |
| bool | removeProgram (const QString &programName) |
| Program * | lookupProgram (const QString &programName) const |
| QStringList | programNames () const |
| QList< Program * > | programs () const |
| int | numPrograms () const |
| virtual QString | launchTemplate () const |
| QString | launchScriptName () const |
| int | jobFailureCount (IdType moleQueueId) const |
| virtual void | replaceKeywords (QString &launchScript, const Job &job, bool addNewline=true) |
Protected Slots | |
| bool | prepareJobForSubmission (Job &job) |
| void | processStarted () |
| void | processFinished (int exitCode, QProcess::ExitStatus exitStatus) |
| void | processError (QProcess::ProcessError error) |
| Protected Slots inherited from Queue | |
| virtual void | jobAboutToBeRemoved (const MoleQueue::Job &job) |
| void | programNameChanged (const QString &newName, const QString &oldName) |
| void | cleanLocalDirectory (const MoleQueue::Job &job) |
Protected Member Functions | |
| bool | addJobToQueue (const Job &job) |
| void | connectProcess (QProcess *proc) |
| void | checkJobQueue () |
| bool | startJob (IdType moleQueueId) |
| void | timerEvent (QTimerEvent *theEvent) |
| Protected Member Functions inherited from Queue | |
| Queue (const QString &queueName="Undefined", QueueManager *parentManager=0) | |
| bool | writeInputFiles (const Job &job) |
| bool | addJobFailure (IdType moleQueueId) |
| void | clearJobFailures (IdType moleQueueId) |
Protected Attributes | |
| int | m_checkJobLimitTimerId |
| QList< IdType > | m_pendingJobQueue |
| QMap< IdType, QProcess * > | m_runningJobs |
| int | m_cores |
| Protected Attributes inherited from Queue | |
| QueueManager * | m_queueManager |
| Server * | m_server |
| QString | m_name |
| QString | m_launchTemplate |
| QString | m_launchScriptName |
| QMap< QString, Program * > | m_programs |
| QMap< IdType, IdType > | m_jobs |
| QMap< IdType, int > | m_failureTracker |
Additional Inherited Members | |
| Signals inherited from Queue | |
| void | programAdded (const QString &name, MoleQueue::Program *program) |
| void | programRemoved (const QString &name, MoleQueue::Program *program) |
| void | programRenamed (const QString &newName, Program *prog, const QString &oldName) |
| void | nameChanged (const QString &newName, const QString &oldName) |
| Static Public Member Functions inherited from Queue | |
| static QString | queueTypeFromFile (const QString &mqqFile) |
Queue for running jobs locally.
|
virtual |
Returns the type of the queue as a string.
Reimplemented from Queue.
|
virtual |
writeJsonSettings Write the queue's internal state into a JSON object.
| value | Target JSON object. |
| exportOnly | If true, instance specific information (e.g. currently running jobs, login details, etc) is omitted. |
| includePrograms | Whether or not to include the Queue's program configurations. |
Reimplemented from Queue.
|
virtual |
readJsonSettings Initialize the queue's internal state from a JSON object.
| value | Source JSON object. |
| importOnly | If true, instance specific information (e.g. currently running jobs, login details, etc) is ignored. |
| includePrograms | Whether or not to include the Queue's program configurations. |
Reimplemented from Queue.
|
virtual |
Returns a widget that can be used to configure the settings for the queue.
Reimplemented from Queue.
| int maxNumberOfCores | ( | ) | const |
The number of cores available.
| void setMaxNumberOfCores | ( | int | cores | ) |
The number of cores available.
|
protectedslot |
Write the input files for the job and add to the queue
| job | The Job. |
|
protectedslot |
Called when a process starts.
|
protectedslot |
Called when a process exits.
| exitCode | Exit code of process |
| exitStatus | Exit status of process |
|
protectedslot |
Called when a error occurs with a process.
| error | the specific error that occurred |
|
protected |
Insert the job into the queue.
|
protected |
Connect proc to handlers prior to submitting job.
|
protected |
Submit any queued jobs that can be started.
|
protected |
Submit the job with MoleQueue id moleQueueId.
|
protected |
Reimplemented to monitor queue events.
|
protected |
Internal timer id.
|
protected |
FIFO queue of MoleQueue ids.
|
protected |
List of running processes. MoleQueue Id to QProcess*.
|
protected |
The number of cores available.