CatapultServer  v0.5.0.1 (Elephant)
MongoAccountStateCacheStorage.h
Go to the documentation of this file.
1 
21 #pragma once
23 
24 namespace catapult { namespace mongo { namespace storages {
25 
27  DECLARE_MONGO_CACHE_STORAGE(AccountState);
28 }}}
catapult::mongo::storages::DECLARE_MONGO_CACHE_STORAGE
DECLARE_MONGO_CACHE_STORAGE(AccountState)
Creates a mongo account state cache storage around database, bulkWriter and networkIdentifier.
catapult::mongo::plugins::CreateAccountMosaicRestrictionTransactionMongoPlugin
PLUGIN_API std::unique_ptr< MongoTransactionPlugin > CreateAccountMosaicRestrictionTransactionMongoPlugin()
Creates a mongo account mosaic restriction transaction plugin.
CacheStorageInclude.h
catapult::mongo::plugins::CreateAccountOperationRestrictionTransactionMongoPlugin
PLUGIN_API std::unique_ptr< MongoTransactionPlugin > CreateAccountOperationRestrictionTransactionMongoPlugin()
Creates a mongo account operation restriction transaction plugin.
catapult::state::AccountState
Account state data.
Definition: AccountState.h:44
Collection_Name
static constexpr auto Collection_Name
Definition: MongoAccountStateCacheStorage.cpp:37
catapult::mongo::MongoPluginManager::addTransactionSupport
void addTransactionSupport(std::unique_ptr< MongoTransactionPlugin > &&pTransactionPlugin)
Adds support for a transaction described by pTransactionPlugin.
Definition: MongoPluginManager.h:53
catapult::mongo::MongoPluginManager::networkIdentifier
model::NetworkIdentifier networkIdentifier() const
Gets the network idenfifier.
Definition: MongoPluginManager.h:47
catapult::mongo::MongoPluginManager::addStorageSupport
void addStorageSupport(std::unique_ptr< TStorage > &&pStorage)
Adds support for an external cache storage described by pStorage.
Definition: MongoPluginManager.h:64
PLUGIN_API
#define PLUGIN_API
Definition: plugins.h:30
AccountRestrictionMapper.h
catapult::mongo::MongoPluginManager
A manager for registering mongo plugins.
Definition: MongoPluginManager.h:32
MongoAccountStateCacheStorage.h
catapult::mongo::MongoPluginManager::mongoContext
MongoStorageContext & mongoContext() const
Gets the mongo storage context.
Definition: MongoPluginManager.h:42
Id_Property_Name
static constexpr auto Id_Property_Name
Definition: MongoAccountStateCacheStorage.cpp:38
AccountStateMapper.h
catapult::mongo::plugins::CreateAccountAddressRestrictionTransactionMongoPlugin
PLUGIN_API std::unique_ptr< MongoTransactionPlugin > CreateAccountAddressRestrictionTransactionMongoPlugin()
Creates a mongo account address restriction transaction plugin.
catapult::cache::AccountStateCacheDelta
Delta on top of the account state cache.
Definition: AccountStateCacheDelta.h:179
MongoPluginManager.h
DEFINE_MONGO_FLAT_CACHE_STORAGE
#define DEFINE_MONGO_FLAT_CACHE_STORAGE(NAME, TRAITS_NAME)
Defines a mongo flat cache storage with NAME using TRAITS_NAME.
Definition: extensions/mongo/src/CacheStorageInclude.h:41
AccountStateCache.h
catapult::model::NetworkIdentifier
NetworkIdentifier
Possible network identifiers.
Definition: NetworkInfo.h:45
catapult::cache::AccountStateCache
Synchronized cache composed of stateful account information.
Definition: AccountStateCache.h:72
catapult::mongo::plugins::ToDbModel
bsoncxx::document::value ToDbModel(const state::HashLockInfo &hashLockInfo, const Address &accountAddress)
Maps a hashLockInfo and accountAddress to the corresponding db model value.
Definition: HashLockInfoMapper.cpp:40
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::mongo::mappers::ToBinary
bsoncxx::types::b_binary ToBinary(const uint8_t *pData, size_t size)
Converts raw array (pData) of size elements into bson binary type.
Definition: MapperUtils.cpp:30
MongoCacheStorage.h
catapult::utils::ByteArray< Address_Decoded_Size, Address_tag >
RegisterMongoSubsystem
PLUGIN_API void RegisterMongoSubsystem(catapult::mongo::MongoPluginManager &manager)
Entry point for registering a dynamic module with manager.
Definition: MongoAccountRestrictionPlugin.cpp:26
MongoAccountRestrictionCacheStorage.h