JobApplication class is used to handle the JMAG-Scheduler application.
Each class object is called from JobApplication class.
.
More...
Public Member Functions | |
| void | AddJobFromFile (String &xmlFile) |
| Internal function. More... | |
| void | AddJobFromXML (String &xml) |
| Internal function. More... | |
| void | Cancel (String &calculationFolder) |
| Internal function. More... | |
| void | CleanupJobs () |
| Cleans up finished jobs. | |
| void | CleanupJobsByGroup (String &groupID) |
| Cleans up finished jobs. More... | |
| String | ErrorMessage () |
| Returns content of error message. More... | |
| int | FinishedJobs () |
| Returns the number of finished jobs. More... | |
| String | FinishTime (String &calculationFolder) |
| Returns the finish time of specified job. More... | |
| Job * | GetJobByFolder (String &calculationFolder) |
| Returns Job object. More... | |
| bool | HasErrorMessage () |
| Returns True as the return value when there is an error message. More... | |
| bool | HasJob (String &calculationFolder) |
| Returns True if the job exists in the scheduler. More... | |
| bool | HasLocalJobToCreateMesh () |
| Internal function. More... | |
| bool | IsCanceled (String &calculationFolder) |
| Returns True as the return value when a job is canceled. More... | |
| bool | IsError (String &calculationFolder) |
| Returns True as the return value when a job is error. More... | |
| bool | IsFinished (String &calculationFolder) |
| Returns True as the return value when a job is finished. More... | |
| bool | IsGUIShown () |
| Returns True if the JMAG-Scheduler has a GUI. More... | |
| double | JobProgress (String &calculationFolder) |
| Returns the percentage complete for a running job. More... | |
| void | Quit () |
| Exits JMAG-Scheduler. | |
| void | QuitIfIdle () |
| Internal function. More... | |
| void | ResumeUpdates () |
| Internal function. More... | |
| void | SetMaxJobs (int maxJobs) |
| void | StartSubmitGroup (String &groupId) |
| Internal function. More... | |
| void | StopSubmitGroup (String &groupId) |
| Internal function. More... | |
| int | TotalJobs () |
| Returns the number of jobs registered in JMAG-Scheduler. More... | |
| int | UnfinishedJobs () |
| Returns the number of unfinished jobs. More... | |
JobApplication class is used to handle the JMAG-Scheduler application.
Each class object is called from JobApplication class.
.
Use application name "scheduler" to obtain an application object.
| void JobApplication::AddJobFromFile | ( | String & | xmlFile | ) |
Internal function.
| void JobApplication::AddJobFromXML | ( | String & | xml | ) |
Internal function.
| void JobApplication::Cancel | ( | String & | calculationFolder | ) |
Internal function.
| void JobApplication::CleanupJobsByGroup | ( | String & | groupID | ) |
Cleans up finished jobs.
| groupID | ID of the group to be deleted |
| String JobApplication::ErrorMessage | ( | ) |
Returns content of error message.
| int JobApplication::FinishedJobs | ( | ) |
Returns the number of finished jobs.
| String JobApplication::FinishTime | ( | String & | calculationFolder | ) |
Returns the finish time of specified job.
| calculationFolder | Folder |
| Job * JobApplication::GetJobByFolder | ( | String & | calculationFolder | ) |
| bool JobApplication::HasErrorMessage | ( | ) |
Returns True as the return value when there is an error message.
| bool JobApplication::HasJob | ( | String & | calculationFolder | ) |
Returns True if the job exists in the scheduler.
| calculationFolder | Folder running the calculation |
| bool JobApplication::HasLocalJobToCreateMesh | ( | ) |
Internal function.
| bool JobApplication::IsCanceled | ( | String & | calculationFolder | ) |
Returns True as the return value when a job is canceled.
| calculationFolder | Folder running the calculation |
| bool JobApplication::IsError | ( | String & | calculationFolder | ) |
Returns True as the return value when a job is error.
| calculationFolder | Folder running the calculation |
| bool JobApplication::IsFinished | ( | String & | calculationFolder | ) |
Returns True as the return value when a job is finished.
| calculationFolder | Folder running the calculation |
| bool JobApplication::IsGUIShown | ( | ) |
Returns True if the JMAG-Scheduler has a GUI.
| double JobApplication::JobProgress | ( | String & | calculationFolder | ) |
Returns the percentage complete for a running job.
| calculationFolder | Folder running the calculation |
| void JobApplication::QuitIfIdle | ( | ) |
Internal function.
| void JobApplication::ResumeUpdates | ( | ) |
Internal function.
| void JobApplication::SetMaxJobs | ( | int | maxJobs | ) |
| Number | of jobs |
| void JobApplication::StartSubmitGroup | ( | String & | groupId | ) |
Internal function.
| void JobApplication::StopSubmitGroup | ( | String & | groupId | ) |
Internal function.
| int JobApplication::TotalJobs | ( | ) |
Returns the number of jobs registered in JMAG-Scheduler.
| int JobApplication::UnfinishedJobs | ( | ) |
Returns the number of unfinished jobs.