Abstraction of a job used for executing tasks in a Workflow.
More...
#include <Job.h>
Abstraction of a job used for executing tasks in a Workflow.
◆ Job()
wrench::Job::Job |
( |
std::string |
name, |
|
|
std::shared_ptr< JobManager > |
job_manager |
|
) |
| |
|
protected |
Constructor.
- Parameters
-
name | job name (if empty, a name will be chosen for you) |
job_manager | manager in charge of this job |
◆ getCallbackMailbox()
simgrid::s4u::Mailbox * wrench::Job::getCallbackMailbox |
( |
| ) |
|
Get the job's "next" callback mailbox, without popping it.
- Returns
- the next callback mailbox
◆ getEndDate()
double wrench::Job::getEndDate |
( |
| ) |
|
Get the date at which the job ended (<0 means "never submitted")
- Returns
- the end date
◆ getName()
std::string wrench::Job::getName |
( |
| ) |
|
Get the job's name.
- Returns
- the name as a string
◆ getNewUniqueNumber()
unsigned long wrench::Job::getNewUniqueNumber |
( |
| ) |
|
|
protected |
Generate a unique number (for each newly generated job)
- Returns
- a unique number
◆ getOriginCallbackMailbox()
simgrid::s4u::Mailbox * wrench::Job::getOriginCallbackMailbox |
( |
| ) |
|
Get the "origin" callback mailbox.
- Returns
- the next callback mailbox
◆ getParentComputeService()
std::shared_ptr< ComputeService > wrench::Job::getParentComputeService |
( |
| ) |
|
Get the compute service that is running /ran the job.
- Returns
- a compute service
◆ getPriority()
double wrench::Job::getPriority |
( |
| ) |
const |
Get the job's priority (the higher the priority value, the higher the priority)
- Returns
- the job's priority
◆ getServiceSpecificArguments()
std::map< std::string, std::string > & wrench::Job::getServiceSpecificArguments |
( |
| ) |
|
Return the service-specific arguments that are used during job submission.
- Returns
- a map of argument name/values
◆ getSubmitDate()
double wrench::Job::getSubmitDate |
( |
| ) |
|
Get the date at which the job was last submitted (<0 means "never submitted")
- Returns
- the submit date
◆ popCallbackMailbox()
simgrid::s4u::Mailbox * wrench::Job::popCallbackMailbox |
( |
| ) |
|
Get the "next" callback mailbox (returns the workflow mailbox if the mailbox stack is empty), and pops it.
- Returns
- the next callback mailbox
◆ pushCallbackMailbox()
void wrench::Job::pushCallbackMailbox |
( |
simgrid::s4u::Mailbox * |
mailbox | ) |
|
Pushes a callback mailbox.
- Parameters
-
◆ setParentComputeService()
void wrench::Job::setParentComputeService |
( |
std::shared_ptr< ComputeService > |
compute_service | ) |
|
Set the parent compute service of the job.
- Parameters
-
compute_service | a compute service |
◆ setPriority()
void wrench::Job::setPriority |
( |
double |
priority | ) |
|
|
virtual |
Set the job's priority (the higher the priority value, the higher the priority)
- Parameters
-
Reimplemented in wrench::CompoundJob.
◆ setServiceSpecificArguments()
void wrench::Job::setServiceSpecificArguments |
( |
std::map< std::string, std::string > |
args | ) |
|
|
protected |
Sets the service-specific arguments that are used during job submission.
- Parameters
-
args | a map of argument name/values |
The documentation for this class was generated from the following files: