wrench::FunctionManager
-
class FunctionManager : public wrench::Service
A manager for interacting with a serverless compute service.
Public Functions
-
~FunctionManager() override
Destructor.
Invokes a function on a ServerlessComputeService.
- Parameters:
registered_function – the (registered) function to invoke
sl_compute_service – the ServerlessComputeService to invoke the function on
function_input – the input (object) to the function
- Returns:
std::shared_ptr<Invocation> an Invocation object created by the ServerlessComputeService
State finding method to check if an invocation is done.
- Parameters:
invocation – the invocation to check
- Returns:
true if the invocation is done
- Returns:
false if the invocation is not done
-
void kill()
Kill the function manager.
Registers a function with the ServerlessComputeService.
- Parameters:
function – the function to register
sl_compute_service – the ServerlessComputeService to register the function on
time_limit_in_seconds – the time limit for the function execution
disk_space_limit_in_bytes – the disk space limit for the function
RAM_limit_in_bytes – the RAM limit for the function
ingress_in_bytes – the ingress data limit (this is currently completely IGNORED)
egress_in_bytes – the egress data limit (this is currently completely IGNORED)
- Throws:
ExecutionException – if the function registration fails
- Returns:
true if the function was registered successfully
-
virtual void stop() override
Stop the function manager.
Waits for a list of invocations to finish.
Waits for a single invocation to finish.
- Parameters:
invocation – the invocation to wait for
Public Static Functions
-
~FunctionManager() override