wrench::Container

class Container

Represents a container in a serverless platform.

Public Types

enum class State

Enum to describe a container’s state.

Values:

enumerator BUSY
enumerator IDLE

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

const Function *getFunction() const

Get the container’s function.

Returns:

a function

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

std::shared_ptr<StorageService> getPrivateStorageService() const

Get the container’s private storage service.

Returns:

a storage service

bool isBusy() const

Determine whether the container is busy or not.

Returns:

true if busy, false otherwise

bool isIdle() const

Determine whether the container is idle or not.

Returns:

true if idle, false otherwise