Adds immediate migration results in progress
This commit is contained in:
2102 files changed
+17482
-15071
No files matched your search
@@ -19,9 +19,8 @@
|
||||
namespace ExerciseManagement
|
||||
{
|
||||
|
||||
MainHandler::MainHandler(QObject *parent)
|
||||
: QObject(parent)
|
||||
{}
|
||||
MainHandler::MainHandler(QObject *parent) : QObject(parent),
|
||||
m_logger(NGL::NGLLoggerBootstrap::getLogger()) {}
|
||||
|
||||
MainHandler::~MainHandler()
|
||||
{
|
||||
@@ -39,7 +38,7 @@ bool MainHandler::init(int domainId)
|
||||
m_ddsHandler = std::make_shared<DdsHandler>(domainId);
|
||||
if (!m_ddsHandler->init())
|
||||
{
|
||||
ERROR_LOG() << "Initialisation ddsHandler failed.";
|
||||
ERROR_LOG(m_logger) << "Initialisation ddsHandler failed.";
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -47,14 +46,14 @@ bool MainHandler::init(int domainId)
|
||||
m_dbHandler = std::make_shared<DbHandler>();
|
||||
if (!m_dbHandler->init(0, Settings::settings()))
|
||||
{
|
||||
ERROR_LOG() << "Initialisation dbHandler failed.";
|
||||
ERROR_LOG(m_logger) << "Initialisation dbHandler failed.";
|
||||
return false;
|
||||
}
|
||||
|
||||
// initialize DbAdministration
|
||||
if (!initDbAdminstration())
|
||||
{
|
||||
ERROR_LOG() << "Initialisation dbAdministration failed.";
|
||||
ERROR_LOG(m_logger) << "Initialisation dbAdministration failed.";
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -86,11 +85,11 @@ bool MainHandler::initDbAdminstration()
|
||||
connect(m_exTblGen.get(), &DBAdministration::ExerciseTableGenerator::aliveSignal,
|
||||
this, &MainHandler::sendKeepAlive);
|
||||
|
||||
DEBUG_LOG() << "Initialise DbAdmin ";
|
||||
DEBUG_LOG(m_logger) << "Initialise DbAdmin ";
|
||||
if (!m_exTblGen->init(m_dbHandler->db()->database(),
|
||||
m_dbHandler->db()->schemaName()))
|
||||
{
|
||||
ERROR_LOG() << "Initialisation dbAdminHandler failed.";
|
||||
ERROR_LOG(m_logger) << "Initialisation dbAdminHandler failed.";
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
@@ -100,10 +99,10 @@ bool MainHandler::initExerciseHandler()
|
||||
{
|
||||
m_handlerExercise.reset(new HandlerExercise(this, m_ddsHandler, m_dbHandler->db(), m_exTblGen));
|
||||
|
||||
DEBUG_LOG() << "Initialise ExerciseHandler ";
|
||||
DEBUG_LOG(m_logger) << "Initialise ExerciseHandler ";
|
||||
if (!m_handlerExercise->init())
|
||||
{
|
||||
ERROR_LOG() << "Initialisation ExerciseHandler failed.";
|
||||
ERROR_LOG(m_logger) << "Initialisation ExerciseHandler failed.";
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -114,10 +113,10 @@ bool MainHandler::initExercisePhaseHandler()
|
||||
{
|
||||
m_handlerExercisePhases.reset(new HandlerExercisePhase(this, m_ddsHandler, m_dbHandler->db()));
|
||||
|
||||
DEBUG_LOG() << "Initialise ExercisePhaseHandler ";
|
||||
DEBUG_LOG(m_logger) << "Initialise ExercisePhaseHandler ";
|
||||
if (!m_handlerExercisePhases->init())
|
||||
{
|
||||
ERROR_LOG() << "Initialisation ExercisePhaseHandler failed.";
|
||||
ERROR_LOG(m_logger) << "Initialisation ExercisePhaseHandler failed.";
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -127,10 +126,10 @@ bool MainHandler::initExercisePhaseHandler()
|
||||
bool MainHandler::initWebSocketHandler()
|
||||
{
|
||||
m_websocketHandler = std::make_shared<WebSocketInterface::WebSocketInterfaceHandler>(this);
|
||||
DEBUG_LOG() << "Initialise WebSocketInterfaceHandler";
|
||||
DEBUG_LOG(m_logger) << "Initialise WebSocketInterfaceHandler";
|
||||
if (!m_websocketHandler->init())
|
||||
{
|
||||
ERROR_LOG() << "Initialisation WebSocketInterfaceHandler failed.";
|
||||
ERROR_LOG(m_logger) << "Initialisation WebSocketInterfaceHandler failed.";
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user