WRENCH  1.11
Cyberinfrastructure Simulation Workbench
Overview Installation Getting Started WRENCH 101 WRENCH 102
Public Member Functions | List of all members
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< Job > job, std::shared_ptr< Service > service)
 Constructor. More...
 
std::shared_ptr< JobgetJob ()
 Getter. More...
 
std::shared_ptr< ServicegetService ()
 Getter. More...
 
std::string toString () override
 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< Job job,
std::shared_ptr< Service service 
)

Constructor.

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

Member Function Documentation

◆ getJob()

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

Getter.

Returns
the job

◆ getService()

std::shared_ptr< Service > wrench::NotEnoughResources::getService ( )

Getter.

Returns
the compute service

◆ toString()

std::string wrench::NotEnoughResources::toString ( )
overridevirtual

Get the human-readable failure message.

Returns
the message

Implements wrench::FailureCause.


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