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()

Clear the private storage’s content.

ServerlessComputeNode *getComputeNode() const

Get the compute node on which this container is running.

Returns:

a compute node

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

const RegisteredFunction *getRegisteredFunction() const

Get the container’s registered function.

Returns:

a registered function

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