CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
24 namespace catapult {
namespace config {
struct NodeConfiguration; } }
26 namespace catapult {
namespace extensions {
29 cache::MemoryCacheOptions
GetUtCacheOptions(
const config::NodeConfiguration& config);
std::string GetIniPropertyName(const char *cppVariableName)
Gets the ini property name corresponding to the cpp variable name (cppVariableName).
Definition: utils/ConfigurationUtils.cpp:26
void VerifyBagSizeLte(const ConfigurationBag &bag, size_t expectedSize)
Verifies that the number of properties in bag is no greater than expectedSize.
Definition: utils/ConfigurationUtils.cpp:38
constexpr uint64_t bytes() const
Returns the number of bytes.
Definition: FileSize.h:67
std::pair< std::vector< std::string >, size_t > ExtractSectionAsOrderedVector(const ConfigurationBag &bag, const char *section)
Definition: utils/ConfigurationUtils.cpp:54
utils::FileSize UnconfirmedTransactionsCacheMaxResponseSize
Maximum size of an unconfirmed transactions response.
Definition: NodeConfiguration.h:85
Node configuration settings.
Definition: NodeConfiguration.h:33
ConfigurationBag ExtractSectionAsBag(const ConfigurationBag &bag, const char *section)
Extracts all section properties from bag into a new bag with a single section with a default (empty s...
Definition: utils/ConfigurationUtils.cpp:43
A simple bag of properties.
Definition: ConfigurationBag.h:57
std::unordered_map< std::string, OrderedKeyValueMap< std::string > > ValuesContainer
Underlying container that a configuration bag is created around.
Definition: ConfigurationBag.h:68
#define CATAPULT_THROW_INVALID_ARGUMENT_1(MESSAGE, PARAM1)
Macro used to throw a catapult invalid argument with a single parameter.
Definition: exceptions.h:183
uint32_t UnconfirmedTransactionsCacheMaxSize
Maximum size of the unconfirmed transactions cache.
Definition: NodeConfiguration.h:88
cache::MemoryCacheOptions GetUtCacheOptions(const config::NodeConfiguration &config)
Extracts unconfirmed transactions cache options from config.
Definition: extensions/ConfigurationUtils.cpp:26
#define CATAPULT_THROW_INVALID_ARGUMENT(MESSAGE)
Macro used to throw a catapult invalid argument.
Definition: exceptions.h:179
Definition: AddressExtractionExtension.cpp:28
Options for customizing the behavior of a memory based cache.
Definition: MemoryCacheOptions.h:27
OrderedKeyValueMap< T > getAllOrdered(const char *section) const
Gets all section properties from this bag preserving source order.
Definition: ConfigurationBag.h:154
size_t size() const
Returns the number of properties in this bag.
Definition: ConfigurationBag.h:84
std::pair< std::unordered_set< std::string >, size_t > ExtractSectionAsUnorderedSet(const ConfigurationBag &bag, const char *section)
Definition: utils/ConfigurationUtils.cpp:49