Refactor ETL into smaller components (#649)

Fixes #666 and #664
This commit is contained in:
Alex Kremer
2023-06-02 16:12:06 +01:00
committed by GitHub
parent 7e8569b03a
commit b07fbb14dc
52 changed files with 3559 additions and 2528 deletions

View File

@@ -19,7 +19,7 @@
#include <rpc/common/impl/HandlerProvider.h>
#include <etl/ReportingETL.h>
#include <etl/ETLService.h>
#include <rpc/Counters.h>
#include <subscriptions/SubscriptionManager.h>
@@ -56,8 +56,8 @@ namespace RPC::detail {
ProductionHandlerProvider::ProductionHandlerProvider(
std::shared_ptr<BackendInterface> const& backend,
std::shared_ptr<SubscriptionManager> const& subscriptionManager,
std::shared_ptr<ETLLoadBalancer> const& balancer,
std::shared_ptr<ReportingETL const> const& etl,
std::shared_ptr<LoadBalancer> const& balancer,
std::shared_ptr<ETLService const> const& etl,
Counters const& counters)
: handlerMap_{
{"account_channels", {AccountChannelsHandler{backend}}},

View File

@@ -29,8 +29,8 @@
#include <unordered_map>
class SubscriptionManager;
class ReportingETL;
class ETLLoadBalancer;
class ETLService;
class LoadBalancer;
namespace RPC {
class Counters;
@@ -56,8 +56,8 @@ public:
ProductionHandlerProvider(
std::shared_ptr<BackendInterface> const& backend,
std::shared_ptr<SubscriptionManager> const& subscriptionManager,
std::shared_ptr<ETLLoadBalancer> const& balancer,
std::shared_ptr<ReportingETL const> const& etl,
std::shared_ptr<LoadBalancer> const& balancer,
std::shared_ptr<ETLService const> const& etl,
Counters const& counters);
bool