Namespace faabric::snapshot
-
namespace snapshot
Enums
-
enum SnapshotCalls
Values:
-
enumerator NoSnapshotCall
-
enumerator PushSnapshot
-
enumerator PushSnapshotUpdate
-
enumerator DeleteSnapshot
-
enumerator ThreadResult
-
enumerator NoSnapshotCall
Functions
-
std::vector<std::pair<std::string, std::shared_ptr<faabric::util::SnapshotData>>> getSnapshotPushes()
-
std::vector<std::pair<std::string, std::vector<faabric::util::SnapshotDiff>>> getSnapshotDiffPushes()
-
std::vector<std::pair<std::string, std::string>> getSnapshotDeletes()
-
std::vector<std::pair<std::string, MockThreadResult>> getThreadResults()
-
void clearMockSnapshotRequests()
-
std::shared_ptr<SnapshotClient> getSnapshotClient(const std::string &otherHost)
-
void clearSnapshotClients()
-
SnapshotRegistry &getSnapshotRegistry()
Variables
-
static std::mutex mockMutex
-
static std::vector<std::pair<std::string, std::shared_ptr<faabric::util::SnapshotData>>> snapshotPushes
-
static std::vector<std::pair<std::string, std::vector<faabric::util::SnapshotDiff>>> snapshotDiffPushes
-
static std::vector<std::pair<std::string, std::string>> snapshotDeletes
-
static std::vector<std::pair<std::string, MockThreadResult>> threadResults
-
static faabric::util::ConcurrentMap<std::string, std::shared_ptr<faabric::snapshot::SnapshotClient>> snapshotClients
-
struct MockThreadResult
Public Members
-
uint32_t msgId = 0
-
int res = 0
-
std::string key
-
std::vector<faabric::util::SnapshotDiff> diffs
-
uint32_t msgId = 0
-
class SnapshotClient : public faabric::transport::MessageEndpointClient
Public Functions
-
explicit SnapshotClient(const std::string &hostIn)
-
void pushThreadResult(uint32_t appId, uint32_t messageId, int returnValue, const std::string &key, const std::vector<faabric::util::SnapshotDiff> &diffs)
-
explicit SnapshotClient(const std::string &hostIn)
-
class SnapshotRegistry
Public Functions
-
SnapshotRegistry() = default
-
std::shared_ptr<faabric::util::SnapshotData> getSnapshot(const std::string &key)
-
bool snapshotExists(const std::string &key)
-
void deleteSnapshot(const std::string &key)
-
size_t getSnapshotCount()
-
void clear()
-
SnapshotRegistry() = default
-
class SnapshotServer : public faabric::transport::MessageEndpointServer
Public Functions
-
SnapshotServer()
-
SnapshotServer()
-
enum SnapshotCalls