wrench::ComputeServiceIsThereAtLeastOneHostWithAvailableResourcesRequestMessage

class ComputeServiceIsThereAtLeastOneHostWithAvailableResourcesRequestMessage : public wrench::ComputeServiceMessage

A message sent to a ComputeService to asks if at least one host has some available resources right now.

Public Functions

ComputeServiceIsThereAtLeastOneHostWithAvailableResourcesRequestMessage(simgrid::s4u::Mailbox *answer_mailbox, unsigned long num_cores, double ram, double payload)

Constructor.

Parameters
  • answer_mailbox – the mailbox to which to send the answer

  • num_cores – the desired number of cores

  • ram – the desired RAM

  • payload – the message size in bytes

Throws

std::invalid_argument

Public Members

simgrid::s4u::Mailbox *answer_mailbox

The mailbox to which a reply should be sent.

unsigned long num_cores

The number of cores desired.

double ram

The RAM desired.