#include <local.h>
Queue for running jobs locally.
QString typeName |
( |
| ) |
const |
|
virtual |
Returns the type of the queue as a string.
Reimplemented from Queue.
bool writeJsonSettings |
( |
QJsonObject & |
value, |
|
|
bool |
exportOnly, |
|
|
bool |
includePrograms |
|
) |
| const |
|
virtual |
writeJsonSettings Write the queue's internal state into a JSON object.
- Parameters
-
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. |
- Returns
- True on success, false on failure.
Reimplemented from Queue.
bool readJsonSettings |
( |
const QJsonObject & |
value, |
|
|
bool |
importOnly, |
|
|
bool |
includePrograms |
|
) |
| |
|
virtual |
readJsonSettings Initialize the queue's internal state from a JSON object.
- Parameters
-
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. |
- Returns
- True on success, false on failure.
- Note
- When reimplementing this method, verify and parse the Json object into temporary variables, then call the base class implementation and only modify the queue if the call returns true.
Reimplemented from Queue.
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.
bool prepareJobForSubmission |
( |
Job & |
job | ) |
|
|
protectedslot |
Write the input files for the job and add to the queue
- Parameters
-
- Returns
- True on success, false otherwise.
Called when a process starts.
void processFinished |
( |
int |
exitCode, |
|
|
QProcess::ExitStatus |
exitStatus |
|
) |
| |
|
protectedslot |
Called when a process exits.
- Parameters
-
exitCode | Exit code of process |
exitStatus | Exit status of process |
void processError |
( |
QProcess::ProcessError |
error | ) |
|
|
protectedslot |
Called when a error occurs with a process.
- Parameters
-
error | the specific error that occurred |
bool addJobToQueue |
( |
const Job & |
job | ) |
|
|
protected |
Insert the job into the queue.
void connectProcess |
( |
QProcess * |
proc | ) |
|
|
protected |
Connect proc to handlers prior to submitting job.
Submit any queued jobs that can be started.
bool startJob |
( |
IdType |
moleQueueId | ) |
|
|
protected |
Submit the job with MoleQueue id moleQueueId.
void timerEvent |
( |
QTimerEvent * |
theEvent | ) |
|
|
protected |
Reimplemented to monitor queue events.
int m_checkJobLimitTimerId |
|
protected |
QList<IdType> m_pendingJobQueue |
|
protected |
FIFO queue of MoleQueue ids.
QMap<IdType, QProcess*> m_runningJobs |
|
protected |
List of running processes. MoleQueue Id to QProcess*.
The number of cores available.
The documentation for this class was generated from the following file: