|
phaser-server
0.0.3
|
Manage objects related the RF cavity phasing job. More...
#include <jobSet.h>
Public Member Functions | |
| JobSet (void) | |
| Construct an instance. More... | |
| ~JobSet (void) | |
| Destroy an instance. More... | |
| void | StartJob (PhaseJob *) |
| Start a new RF phasing job. More... | |
| void | RemoveJob (const char *) |
| Remove any outstanding job. More... | |
| PhaseJob * | SetPaused (bool) |
| Pause or resume the job phasing. More... | |
| void | SetMessage (const char *, bool=false) |
| Set the client job status message. More... | |
| bool | IsExecuting (void) const |
| Is there an executing cavity phasing job? More... | |
| void | DbFault (const char *) |
| The results database is unavailable. More... | |
| PhaseJob * | GetJob (void) |
| Access the phasing job object. | |
| ResultsDb * | GetDb (void) |
| Access the database interface object. | |
| const std::string & | GetMessage (void) const |
| Access the job's status message. | |
| bool | IsAlert (void) const |
| Is the job status in alert? | |
| std::ofstream & | GetLog (void) |
| Access the raw data log. | |
Manage objects related the RF cavity phasing job.
The objects managed include the 'PhaseJob', 'ResultsDb', and the job message string.
| JobSet::JobSet | ( | void | ) |
Construct an instance.
| JobSet::~JobSet | ( | void | ) |
Destroy an instance.
Free any remaining job and database objects.
| void JobSet::DbFault | ( | const char * | fault | ) |
The results database is unavailable.
Destroy the phasing job and log an error to both the server log file and the client status message.
| fault | - Specific fault information. |
| bool JobSet::IsExecuting | ( | void | ) | const |
Is there an executing cavity phasing job?
To be true, there must be a phasing job and it must not be paused.
| void JobSet::RemoveJob | ( | const char * | reason | ) |
Remove any outstanding job.
| reason | - Reason job was removed. |
| void JobSet::SetMessage | ( | const char * | msg, |
| bool | alert = false |
||
| ) |
Set the client job status message.
| msg | - The new status message. |
| alert | - Is this an alert severity message? |
| PhaseJob * JobSet::SetPaused | ( | bool | pause | ) |
Pause or resume the job phasing.
| pause | - Pause or resume? |
| void JobSet::StartJob | ( | PhaseJob * | job | ) |
Start a new RF phasing job.
| job | - The new phasing job. |