wrench::ServerlessComputeServiceFunctionRegisterRequestMessage

class ServerlessComputeServiceFunctionRegisterRequestMessage : public wrench::ServerlessComputeServiceMessage

A message sent to a ServerlessComputeService to register a function.

Public Functions

ServerlessComputeServiceFunctionRegisterRequestMessage(S4U_CommPort *answer_commport, const std::string &name, const std::function<std::shared_ptr<FunctionOutput>(const std::shared_ptr<FunctionInput>&, const std::shared_ptr<StorageService>&)> &code, const std::shared_ptr<Image> &image, double time_limit, sg_size_t disk_space_limit_in_bytes, sg_size_t ram_limit_in_bytes, sg_size_t ingress_in_bytes, sg_size_t egress_in_bytes, sg_size_t payload)

Constructor.

Parameters:
  • answer_commport – commport to which the answer message should be sent

  • name – the name of the function to register

  • code – the function’s code

  • image – the function’s image

  • time_limit – time limit for execution

  • disk_space_limit_in_bytes – disk space limit for the function

  • ram_limit_in_bytes – RAM limit for the function

  • ingress_in_bytes – ingress data limit

  • egress_in_bytes – egress data limit

  • payload – message size in bytes

Public Members

S4U_CommPort *answer_commport

The commport_name to answer to.

std::function<std::shared_ptr<FunctionOutput>(const std::shared_ptr<FunctionInput>&, const std::shared_ptr<StorageService>&)> code

The function’s code.

sg_size_t disk_space_limit_in_bytes

Disk space limit for the function in bytes.

sg_size_t egress_in_bytes

Egress data limit in bytes.

std::shared_ptr<Image> image

The function’s image.

sg_size_t ingress_in_bytes

Ingress data limit in bytes.

std::string name

The name of the function to register.

sg_size_t ram_limit_in_bytes

RAM limit for the function in bytes.

double time_limit_in_seconds

The time limit for execution.