wrench::Job

class Job

Abstraction of a job used for executing tasks in a Workflow.

Subclassed by wrench::CompoundJob, wrench::PilotJob, wrench::StandardJob

Public Functions

virtual ~Job()

Destructor.

simgrid::s4u::Mailbox *getCallbackMailbox()

Get the job’s “next” callback mailbox, without popping it.

Returns

the next callback mailbox

double getEndDate()

Get the date at which the job ended (<0 means “never submitted”)

Returns

the end date

std::string getName()

Get the job’s name.

Returns

the name as a string

simgrid::s4u::Mailbox *getOriginCallbackMailbox()

Get the “origin” callback mailbox.

Returns

the next callback mailbox

std::shared_ptr<ComputeService> getParentComputeService()

Get the compute service that is running /ran the job.

Returns

a compute service

double getPriority() const

Get the job’s priority (the higher the priority value, the higher the priority)

Returns

the job’s priority

std::map<std::string, std::string> &getServiceSpecificArguments()

Return the service-specific arguments that are used during job submission.

Returns

a map of argument name/values

double getSubmitDate()

Get the date at which the job was last submitted (<0 means “never submitted”)

Returns

the submit date

simgrid::s4u::Mailbox *popCallbackMailbox()

Get the “next” callback mailbox (returns the workflow mailbox if the mailbox stack is empty), and pops it.

Returns

the next callback mailbox

void printCallbackMailboxStack()

Method to print the call back stack.

void pushCallbackMailbox(simgrid::s4u::Mailbox *mailbox)

Pushes a callback mailbox.

Parameters

mailbox – the mailbox name

void setParentComputeService(std::shared_ptr<ComputeService> compute_service)

Set the parent compute service of the job.

Parameters

compute_service – a compute service

virtual void setPriority(double p)

Set the job’s priority (the higher the priority value, the higher the priority)

Parameters

p – a priority