Adds immediate migration results in progress
This commit is contained in:
2102 files changed
+17482
-15071
No files matched your search
@@ -43,13 +43,13 @@ Initialization::~Initialization()
|
||||
bool Initialization::initialize(const std::shared_ptr<DDSConnector::DdsConnector> &ddsConnector,
|
||||
const QSqlDatabase &)
|
||||
{
|
||||
INFO_LOG() << "Start GuezNasat Initialization.";
|
||||
INFO_LOG(m_logger) << "Start GuezNasat Initialization.";
|
||||
|
||||
|
||||
m_ddsHandler = std::make_shared<DdsHandler>(ddsConnector);
|
||||
if (!m_ddsHandler->init())
|
||||
{
|
||||
ERROR_LOG() << "Initialisation DdsHandler failed.";
|
||||
ERROR_LOG(m_logger) << "Initialisation DdsHandler failed.";
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -58,7 +58,7 @@ bool Initialization::initialize(const std::shared_ptr<DDSConnector::DdsConnector
|
||||
if (!m_dbHandler->init(ddsConnector->getPartitionId(), Settings::settings()))
|
||||
|
||||
{
|
||||
ERROR_LOG() << "Initialisation DbHandler failed.";
|
||||
ERROR_LOG(m_logger) << "Initialisation DbHandler failed.";
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -80,16 +80,16 @@ bool Initialization::initialize(const std::shared_ptr<DDSConnector::DdsConnector
|
||||
|
||||
if (Settings::useWebSocket())
|
||||
{
|
||||
INFO_LOG() << "Using WebSocket";
|
||||
INFO_LOG(m_logger) << "Using WebSocket";
|
||||
m_jsonSocketHandler.reset(new WebSocketHandler);
|
||||
}
|
||||
else
|
||||
{
|
||||
INFO_LOG() << "Using TcpSocket";
|
||||
INFO_LOG(m_logger) << "Using TcpSocket";
|
||||
m_jsonSocketHandler.reset(new TcpSocketHandler);
|
||||
}
|
||||
|
||||
INFO_LOG() << "GuezNasat Initialization initialized";
|
||||
INFO_LOG(m_logger) << "GuezNasat Initialization initialized";
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -97,7 +97,7 @@ bool Initialization::initialize(const std::shared_ptr<DDSConnector::DdsConnector
|
||||
|
||||
bool Initialization::loadFromDatabase()
|
||||
{
|
||||
TRACE_LOG() << Q_FUNC_INFO << "START";
|
||||
TRACE_LOG(m_logger) << Q_FUNC_INFO << "START";
|
||||
|
||||
if (!m_ddsHandler ||
|
||||
!m_dbHandler ||
|
||||
@@ -111,27 +111,27 @@ bool Initialization::loadFromDatabase()
|
||||
|
||||
if (!m_handlerNasatAircraft->init())
|
||||
{
|
||||
ERROR_LOG() << "Initialisation HandlerNasatAircraft failed.";
|
||||
ERROR_LOG(m_logger) << "Initialisation HandlerNasatAircraft failed.";
|
||||
return false;
|
||||
}
|
||||
if (!m_handlerNasatAircraftParticipant->init())
|
||||
{
|
||||
ERROR_LOG() << "Initialisation HandlerNasatAircraftParticipant failed.";
|
||||
ERROR_LOG(m_logger) << "Initialisation HandlerNasatAircraftParticipant failed.";
|
||||
return false;
|
||||
}
|
||||
if (!m_handlerNasatImpact->init())
|
||||
{
|
||||
ERROR_LOG() << "Initialisation HandlerNasatImpact failed.";
|
||||
ERROR_LOG(m_logger) << "Initialisation HandlerNasatImpact failed.";
|
||||
return false;
|
||||
}
|
||||
if (!m_handlerNasatNineLiner->init())
|
||||
{
|
||||
ERROR_LOG() << "Initialisation HandlerNasatNineLiner failed.";
|
||||
ERROR_LOG(m_logger) << "Initialisation HandlerNasatNineLiner failed.";
|
||||
return false;
|
||||
}
|
||||
if (!m_handlerParticipant->init())
|
||||
{
|
||||
ERROR_LOG() << "Initialisation ParticipantPositionPublisher failed.";
|
||||
ERROR_LOG(m_logger) << "Initialisation ParticipantPositionPublisher failed.";
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -147,13 +147,13 @@ bool Initialization::loadFromDatabase()
|
||||
NOTICE_LOG(m_logger) << "Initialisation SocketHandler ....";
|
||||
if (!m_jsonSocketHandler->init(Settings::socketListenPort()))
|
||||
{
|
||||
ERROR_LOG() << "Initialisation WebSocketHandler failed.";
|
||||
ERROR_LOG(m_logger) << "Initialisation WebSocketHandler failed.";
|
||||
}
|
||||
});
|
||||
#else
|
||||
if (!m_jsonSocketHandler->init(Settings::socketListenPort()))
|
||||
{
|
||||
ERROR_LOG() << "Initialisation WebSocketHandler failed.";
|
||||
ERROR_LOG(m_logger) << "Initialisation WebSocketHandler failed.";
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
@@ -171,7 +171,7 @@ bool Initialization::loadFromDatabase()
|
||||
QObject::connect(m_jsonSocketHandler.get(), &AbstractSocketHandler::nineLinerReceived,
|
||||
m_handlerNasatNineLiner.get(), &HandlerNasatNineLiner::nineLinerReceived);
|
||||
|
||||
TRACE_LOG() << Q_FUNC_INFO << "END";
|
||||
TRACE_LOG(m_logger) << Q_FUNC_INFO << "END";
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user