CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
24 namespace catapult {
namespace mongo {
namespace storages {
DECLARE_MONGO_CACHE_STORAGE(AccountState)
Creates a mongo account state cache storage around database, bulkWriter and networkIdentifier.
PLUGIN_API std::unique_ptr< MongoTransactionPlugin > CreateAccountMosaicRestrictionTransactionMongoPlugin()
Creates a mongo account mosaic restriction transaction plugin.
PLUGIN_API std::unique_ptr< MongoTransactionPlugin > CreateAccountOperationRestrictionTransactionMongoPlugin()
Creates a mongo account operation restriction transaction plugin.
Account state data.
Definition: AccountState.h:44
static constexpr auto Collection_Name
Definition: MongoAccountStateCacheStorage.cpp:37
void addTransactionSupport(std::unique_ptr< MongoTransactionPlugin > &&pTransactionPlugin)
Adds support for a transaction described by pTransactionPlugin.
Definition: MongoPluginManager.h:53
model::NetworkIdentifier networkIdentifier() const
Gets the network idenfifier.
Definition: MongoPluginManager.h:47
void addStorageSupport(std::unique_ptr< TStorage > &&pStorage)
Adds support for an external cache storage described by pStorage.
Definition: MongoPluginManager.h:64
#define PLUGIN_API
Definition: plugins.h:30
A manager for registering mongo plugins.
Definition: MongoPluginManager.h:32
MongoStorageContext & mongoContext() const
Gets the mongo storage context.
Definition: MongoPluginManager.h:42
static constexpr auto Id_Property_Name
Definition: MongoAccountStateCacheStorage.cpp:38
PLUGIN_API std::unique_ptr< MongoTransactionPlugin > CreateAccountAddressRestrictionTransactionMongoPlugin()
Creates a mongo account address restriction transaction plugin.
Delta on top of the account state cache.
Definition: AccountStateCacheDelta.h:179
#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
NetworkIdentifier
Possible network identifiers.
Definition: NetworkInfo.h:45
Synchronized cache composed of stateful account information.
Definition: AccountStateCache.h:72
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
Definition: AddressExtractionExtension.cpp:28
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
PLUGIN_API void RegisterMongoSubsystem(catapult::mongo::MongoPluginManager &manager)
Entry point for registering a dynamic module with manager.
Definition: MongoAccountRestrictionPlugin.cpp:26