wrench::NotEnoughResources Class Reference

A "compute service doesn't have enough cores" failure cause. More...

#include <NotEnoughResources.h>

Inheritance diagram for wrench::NotEnoughResources:
wrench::FailureCause

Public Member Functions

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

Detailed Description

A "compute service doesn't have enough cores" failure cause.

Constructor & Destructor Documentation

◆ NotEnoughResources()

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

Constructor.

Parameters
jobthe job that could not be executed (or nullptr if no job was involved)
compute_servicethe compute service that didn't have enough cores or ram

Member Function Documentation

◆ getComputeService()

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

Getter.

Returns
the compute service

◆ getJob()

std::shared_ptr< WorkflowJob > wrench::NotEnoughResources::getJob ( )

Getter.

Returns
the job

◆ toString()

std::string wrench::NotEnoughResources::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: