wrench::Container
-
class Container
Represents a container in a serverless platform.
Public Types
Public Functions
-
void clearPrivateStorage() const
Clear the private storage’s content.
-
ServerlessComputeNode *getComputeNode() const
Get the compute node on which this container is running.
- Returns:
a compute node
-
unsigned long getCreationId() const
Return the container’s creation id.
- Returns:
the id
-
double getExpirationDate() const
Get the container’s expiration date.
- Returns:
a date
-
double getIdleDate() const
Get the container’s idle date.
- Returns:
a date
-
unsigned long getIdleSequence() const
Get the container’s idle sequence.
- Returns:
the sequence number
-
unsigned long getMaxNumInflightInvocations() const
Return the maximum number of “in flight” invocations on the container.
- Returns:
the max number of running invocations
-
unsigned long getNumInflightInvocations() const
Return the number of “in flight” invocations on the container.
- Returns:
the number of running invocations
-
std::shared_ptr<StorageService> getPrivateStorageService() const
Get the container’s private storage service.
- Returns:
a storage service
-
bool isAtInvocationLimit() const
Determine whether the container is at its number of invocations limit.
- Returns:
true if at invocation limit, false if below the limit
-
bool isInitialized() const
Determine whether the container is initialized or not.
- Returns:
true if initialized, false otherwise
-
bool isInitializing() const
Determine whether the container is initializing or not.
- Returns:
true if initializing, false otherwise
-
void clearPrivateStorage() const