wrench::Invocation

class Invocation

Represents an invocation of a registered function.

Public Functions

Invocation(const std::shared_ptr<RegisteredFunction> &registered_function, const std::shared_ptr<FunctionInput> &function_input, S4U_CommPort *notify_commport)

Constructor.

Parameters:
  • registered_function – The registered function to be invoked

  • function_input – The input for the function

  • notify_commport – The commport to notify upon completion/failure

std::string getComputeNode() const

Get the hostname of the compute node on which the invocation was executed.

Returns:

a hostname (or “n/a” if not available)

double getDispatchDate() const

Get the invocation’s dispatch date.

Returns:

A simulated date (or -1.0 if not dispatched)

std::shared_ptr<FailureCause> getFailureCause() const

Gets the cause of failure.

Returns:

A failure cause

double getFunctionEndDate() const

Get the invocation’s function execution end date.

Returns:

A simulated date (or -1.0 if not ended)

double getFunctionStartDate() const

Get the invocation’s function execution start date.

Returns:

A simulated date (or -1.0 if not started)

unsigned long long getId() const

Get the invocations (unique) Id.

Returns:

a numerical Id

std::shared_ptr<FunctionOutput> getOutput() const

Gets the output of the function invocation.

Returns:

A shared pointer to the function output.

std::shared_ptr<RegisteredFunction> getRegisteredFunction() const

Gets the registered function for this invocation.

Returns:

A registered function

double getSubmitDate() const

Get the invocation’s submit date (i.e., the date at which the compute service received the invocation request)

Returns:

A simulated date (or -1.0 if not submitted)

bool hasSucceeded() const

Checks if the invocation was successful.

Returns:

True if the invocation was successful, false otherwise.

bool isDispatched() const

Checks if the invocation has been dispatched.

Returns:

True if the invocation has been dispatched, false otherwise.

bool isDone() const

Checks if the invocation is done.

Returns:

True if the invocation is done, false otherwise.