Adds immediate migration results in progress
This commit is contained in:
2102 files changed
+17482
-15071
No files matched your search
+10
-11
@@ -24,13 +24,12 @@
|
||||
namespace ExerciseEventManagement
|
||||
{
|
||||
|
||||
MainHandler::MainHandler()
|
||||
: m_almService(nullptr)
|
||||
MainHandler::MainHandler() : m_almService(nullptr)
|
||||
, m_fltService(nullptr)
|
||||
, m_mrkService(nullptr)
|
||||
, m_evlService(nullptr)
|
||||
, m_removeTimer(new QTimer(this))
|
||||
{
|
||||
, m_removeTimer(new QTimer(this)),
|
||||
m_logger(NGL::NGLLoggerBootstrap::getLogger()) {
|
||||
connect(m_removeTimer, &QTimer::timeout, this, &MainHandler::onRemoveKeys);
|
||||
m_removeTimer->setInterval(5000);
|
||||
m_removeTimer->setSingleShot(false);
|
||||
@@ -64,12 +63,12 @@ bool MainHandler::init(int domainId, int exerciseId)
|
||||
bool bRet = initInternal(domainId, exerciseId);
|
||||
if (bRet)
|
||||
{
|
||||
INFO_LOG() << "svcExerciseEventManagement successfully initialized";
|
||||
INFO_LOG(m_logger) << "svcExerciseEventManagement successfully initialized";
|
||||
m_ddsHandler->setRunningState(Core::RunningState::Running);
|
||||
}
|
||||
else
|
||||
{
|
||||
ERROR_LOG() << "Error initializing svcExerciseEventManagement...";
|
||||
ERROR_LOG(m_logger) << "Error initializing svcExerciseEventManagement...";
|
||||
if (m_ddsHandler)
|
||||
m_ddsHandler->setRunningState(Core::RunningState::StartingError);
|
||||
}
|
||||
@@ -143,27 +142,27 @@ bool MainHandler::loadFromDatabase()
|
||||
{
|
||||
if (!m_webSocketEventServer || !m_webSocketEventServer->listen(Settings::getWebSocketServerPortRange(1)))
|
||||
{
|
||||
ERROR_LOG() << "Can not initialize WebSocket Event server";
|
||||
ERROR_LOG(m_logger) << "Can not initialize WebSocket Event server";
|
||||
return false;
|
||||
}
|
||||
m_ddsHandler->addPortToPacemaker(m_webSocketEventServer->listenPort(), Core::PortType::WebSocketServer);
|
||||
|
||||
if (!m_handlerEerEvent || !m_handlerEerEvent->init())
|
||||
{
|
||||
ERROR_LOG() << "Can not initialize EquipmentErrorRegistration handler";
|
||||
ERROR_LOG(m_logger) << "Can not initialize EquipmentErrorRegistration handler";
|
||||
return false;
|
||||
}
|
||||
if (!m_dynPartData || !m_dynPartData->init())
|
||||
{
|
||||
ERROR_LOG() << "Can not initialize Participant Data handler";
|
||||
ERROR_LOG(m_logger) << "Can not initialize Participant Data handler";
|
||||
return false;
|
||||
}
|
||||
if (!m_handlerPartEvent || !m_handlerPartEvent->init())
|
||||
{
|
||||
ERROR_LOG() << "Can not initialize Participant Event handler";
|
||||
ERROR_LOG(m_logger) << "Can not initialize Participant Event handler";
|
||||
return false;
|
||||
}
|
||||
DEBUG_LOG() << "loadFromDatabase successfully finished";
|
||||
DEBUG_LOG(m_logger) << "loadFromDatabase successfully finished";
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user