59 lines
1.2 KiB
C++
Executable File
59 lines
1.2 KiB
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* Initialization for ComponentMonitor
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Norbert Thoden, SLSE, 2022-11-03
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "logger.h"
|
|
#include "component_status_handler.h"
|
|
#include "checkmk_handler.h"
|
|
#include "checkmk_handler_schedule_check.h"
|
|
#include <InfrastructureManagement/ism_dtc.h>
|
|
#include <ComponentMonitor/cmo.hpp>
|
|
#include <QObject>
|
|
#include <memory>
|
|
|
|
namespace DDSConnector
|
|
{
|
|
class DdsConnector;
|
|
}
|
|
|
|
namespace ComponentMonitor
|
|
{
|
|
class DdsHandler;
|
|
|
|
class Initialization
|
|
{
|
|
|
|
public:
|
|
Initialization();
|
|
~Initialization();
|
|
|
|
bool initialize(const std::shared_ptr<DdsHandler> &ddsHandler);
|
|
|
|
|
|
std::shared_ptr<DdsHandler> dds() const { return m_ddsHandler; }
|
|
// std::shared_ptr<DatabaseInterface> db() const;
|
|
|
|
bool delayedInit();
|
|
|
|
protected:
|
|
|
|
private:
|
|
std::shared_ptr<DdsHandler> m_ddsHandler;
|
|
std::shared_ptr<ComponentStatusHandler> m_componentStatusHandler;
|
|
std::shared_ptr<CheckmkHandler> m_checkmkHandler;
|
|
std::shared_ptr<CheckmkHandlerScheduleCheck> m_checkmkHandlerScheduleCheck;
|
|
|
|
NGL::INGLLogger &m_logger;
|
|
};
|
|
|
|
|
|
|
|
} // namespace ComponentMonitor
|