ddt  0.1
ddtStatisticsClient.hpp
Go to the documentation of this file.
1 // @copyright
2 // (c) Copyright ESO 2020
3 // All Rights Reserved
4 // ESO (eso.org) is an Intergovernmental Organization, and therefore special
5 // legal conditions apply.
6 //
7 // @file ddtStatisticsClient.hpp
8 // @brief Class for providing statistics.
9 //
10 // This class provides an API to query the statistics from a broker.
11 //
12 // @author Matthias Grimm, CGI
13 // @since 2021/02/26
14 //
15 
16 #ifndef DDTSTATISTICSCLIENT_HPP_
17 #define DDTSTATISTICSCLIENT_HPP_
18 
19 #include "ddt/ddtConstants.hpp"
21 #include "ddt/ddtLogger.hpp"
22 #include "ddt/ddtStatistics.hpp"
23 
24 namespace mal = ::elt::mal;
25 namespace datatransfer = ::elt::ddt::datatransfer;
26 
27 namespace ddt {
28 
33  public:
37  DdtStatisticsClient(DdtLogger* ddt_logger, const std::string broker_uri);
38 
43 
49  DdtStatistics GetStatistics(const std::string data_stream_identifier);
50 
55  std::vector<std::string> GetRegisteredStreams();
56 
61  std::vector<std::string> GetConnectedBrokers();
62 
63  private:
68  void Init(std::string broker_uri);
69 };
70 
71 } // namespace ddt
72 
73 #endif /* DDTSTATISTICSCLIENT_HPP_ */
ddt::DdtStatistics
Definition: ddtStatistics.hpp:24
ddt::DdtLogger
Definition: ddtLogger.hpp:48
ddtConstants.hpp
ddt
Definition: ddtClient.hpp:36
ddt::DdtStatisticsClient::DdtStatisticsClient
DdtStatisticsClient(DdtLogger *ddt_logger, const std::string broker_uri)
Definition: ddtStatisticsClient.cpp:20
ddt::DdtStatisticsClient::GetConnectedBrokers
std::vector< std::string > GetConnectedBrokers()
Definition: ddtStatisticsClient.cpp:124
ddt::DdtStatisticsClient::GetRegisteredStreams
std::vector< std::string > GetRegisteredStreams()
Definition: ddtStatisticsClient.cpp:109
ddt::DdtStatisticsClient::~DdtStatisticsClient
~DdtStatisticsClient() override
ddtDataTransferLib.hpp
ddt::DdtStatisticsClient::GetStatistics
DdtStatistics GetStatistics(const std::string data_stream_identifier)
Definition: ddtStatisticsClient.cpp:66
ddt::DdtStatisticsClient
Definition: ddtStatisticsClient.hpp:32
ddtLogger.hpp
ddtStatistics.hpp
ddt::DdtDataTransferLib
Definition: ddtDataTransferLib.hpp:39