wrench::JobKilled Class Reference

A "job has been killed" failure cause. More...

#include <JobKilled.h>

Inheritance diagram for wrench::JobKilled:
wrench::FailureCause

Public Member Functions

 JobKilled (WorkflowJob *job, std::shared_ptr< ComputeService > compute_service)
 Constructor. More...
 
std::shared_ptr< ComputeServicegetComputeService ()
 Getter. More...
 
WorkflowJobgetJob ()
 Getter. More...
 
std::string toString ()
 Get the human-readable failure message. More...
 

Detailed Description

A "job has been killed" failure cause.

Constructor & Destructor Documentation

◆ JobKilled()

wrench::JobKilled::JobKilled ( WorkflowJob job,
std::shared_ptr< ComputeService compute_service 
)

Constructor.

Parameters
jobthe job that could not be executed
compute_servicethe compute service that didn't have enough cores

Member Function Documentation

◆ getComputeService()

std::shared_ptr< ComputeService > wrench::JobKilled::getComputeService ( )

Getter.

Returns
the compute service

◆ getJob()

WorkflowJob * wrench::JobKilled::getJob ( )

Getter.

Returns
the job

◆ toString()

std::string wrench::JobKilled::toString ( )
virtual

Get the human-readable failure message.

Returns
the message

Implements wrench::FailureCause.


The documentation for this class was generated from the following files: