CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
27 namespace catapult {
namespace plugins {
30 template<
typename TCacheDescriptor>
34 template<model::FacilityCode FacilityCode>
36 using KeyType =
typename TCacheDescriptor::KeyType;
37 using CacheType =
typename TCacheDescriptor::CacheType;
42 handlers::RegisterStatePathHandler<PacketType>(handlers, cache.
sub<CacheType>());
54 template<model::FacilityCode FacilityCode>
60 template<ionet::PacketType PacketType,
typename TKey>
67 template<ionet::PacketType PacketType,
typename TKey>
static constexpr ionet::PacketType Packet_Type
Definition: CacheHandlers.h:69
A packet header with a data payload.
Definition: Packet.h:32
void addDiagnosticHandlerHook(const HandlerHook &hook)
Adds a diagnostic handler hook.
Definition: PluginManager.cpp:114
TKey RequestStructureType
Definition: CacheHandlers.h:71
Definition: CacheHandlers.h:61
Utility class for registering cache-dependent handlers.
Definition: CacheHandlers.h:31
A manager for registering plugins.
Definition: PluginManager.h:51
static constexpr ionet::PacketType Packet_Type
Definition: CacheHandlers.h:62
TKey Key
Definition: CacheHandlers.h:64
Definition: CacheHandlers.h:68
static constexpr auto State_Path
Definition: CacheHandlers.h:56
FacilityCode
Possible facility codes.
Definition: model/FacilityCode.h:27
PacketType
An enumeration of known packet types.
Definition: PacketType.h:171
Cache entry infos producer factory.
Definition: CacheEntryInfosProducerFactory.h:36
Central cache holding all sub caches.
Definition: CatapultCache.h:40
Definition: CacheHandlers.h:55
const TCache & sub() const
Gets a specific sub cache.
Definition: CatapultCache.h:56
static void Register(PluginManager &pluginManager)
Registers all cache handlers in pluginManager for cache with specified facility code.
Definition: CacheHandlers.h:35
Definition: AddressExtractionExtension.cpp:28
static void RegisterOne(ionet::ServerPacketHandlers &handlers, TResultsProducerFactory resultsProducerFactory)
Definition: HandlerFactory.h:54
static constexpr auto Diagnostic_Infos
Definition: CacheHandlers.h:57
void addHandlerHook(const HandlerHook &hook)
Adds a (non-diagnostic) handler hook.
Definition: PluginManager.cpp:102