CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
26 namespace io {
class BlockStorageCache; }
27 namespace ionet {
class NodeContainer; }
28 namespace utils {
class DiagnosticCounter; }
31 namespace catapult {
namespace handlers {
NodeContainerView view() const
Gets a read only view of the nodes.
Definition: NodeContainer.cpp:249
NodeSet FindAllActiveNodes(const NodeContainerView &view)
Finds all active nodes in view.
Definition: NodeContainer.cpp:263
void RegisterDiagnosticCountersHandler(ionet::ServerPacketHandlers &handlers, const std::vector< utils::DiagnosticCounter > &counters)
Registers a diagnostic counters handler in handlers that responds with the current values of counters...
Definition: DiagnosticHandlers.cpp:58
static constexpr auto Packet_Type
Definition: DiagnosticHandlers.cpp:68
void registerHandler(PacketType type, const PacketHandler &handler)
Registers a handler for the specified packet type.
Definition: PacketHandlers.cpp:100
A collection of nodes.
Definition: NodeContainer.h:109
void RegisterDiagnosticBlockStatementHandler(ionet::ServerPacketHandlers &handlers, const io::BlockStorageCache &storage)
Registers a diagnostic block statement handler in handlers that responds with data from storage.
Definition: DiagnosticHandlers.cpp:145
BlockStorageView view() const
Gets a read only view of the storage.
Definition: BlockStorageCache.cpp:176
static void RegisterZero(ionet::ServerPacketHandlers &handlers, TResultsProducerFactory resultsProducerFactory)
Definition: HandlerFactory.h:40
ionet::NodeContainerView m_view
Definition: DiagnosticHandlers.cpp:103
std::unordered_set< Node, NodeHasher > NodeSet
A set of nodes.
Definition: Node.h:128
Definition: BlockStorageCache.h:97
def info(*args)
Definition: forwardsValidation.py:12
static HeightRequestInfo< TRequest > Process(const io::BlockStorageView &storage, const ionet::Packet &packet, ionet::ServerPacketHandlerContext &context, bool shouldAllowZeroHeight)
Definition: HeightRequestProcessor.h:66
void RegisterDiagnosticNodesHandler(ionet::ServerPacketHandlers &handlers, const ionet::NodeContainer &nodeContainer)
Registers a diagnostic nodes handler in handlers that responds with info about all (active) partner n...
Definition: DiagnosticHandlers.cpp:108
A packet payload that can be written.
Definition: PacketPayload.h:29
Definition: AddressExtractionExtension.cpp:28
A packet containing header information and a height.
Definition: ChainPackets.h:45
constexpr bool IsPacketValid(const Packet &packet, PacketType type)
Checks if packet is valid with type.
Definition: Packet.h:75
A collection of packet handlers where there is at most one handler per packet type.
Definition: PacketHandlers.h:62