Adds immediate migration results in progress

This commit is contained in:
torsten committed 2026-08-19 11:18:24 +02:00
1 parent 8453e104c5
commit 3bb6e89496
2102 files changed
+17482 -15071

No files matched your search

@@ -22,8 +22,7 @@
namespace PrtCnv
{
PrtCnvBroadcastMgr::PrtCnvBroadcastMgr()
: m_ClaimWindow(0)
PrtCnvBroadcastMgr::PrtCnvBroadcastMgr() : m_ClaimWindow(0)
, m_HighLoadFactor(0)
, m_BroadcastLimit(0)
, m_Config(nullptr)
@@ -35,8 +34,8 @@ PrtCnvBroadcastMgr::PrtCnvBroadcastMgr()
, m_IsFullLoad(false)
, m_FinishedBroadcastIndex(0)
, m_FirstBroadcastIndexOfBc1(0)
, m_loggerBcRequest(getLogger("PrtCnvBroadcastMgr.BcRequest"))
{
, m_loggerBcRequest(getLogger("PrtCnvBroadcastMgr.BcRequest")),
m_logger(NGL::NGLLoggerBootstrap::getLogger()) {
}
@@ -163,7 +162,7 @@ void PrtCnvBroadcastMgr::handleNachforderungBroadcastTelegram(int identity, int
m_claimerArray.emplace_back(identity, broadcastIndex);
return;
}
WARNING_LOG() << "NachforderungBroadcast from TNE with id=" << identity
WARNING_LOG(m_logger) << "NachforderungBroadcast from TNE with id=" << identity
<< ": resetCounter different we have: " << int(m_DbThread->getResetCounter())
<< "; TNE has: " << resetCounter << " => discarded";
}
@@ -180,7 +179,7 @@ std::shared_ptr<N_CoPrtCnv::CoPrtCnvRadioTelegram> PrtCnvBroadcastMgr::getNextBr
DEBUG_LOG() << "getNextBroadcastTelegramToSend, startIdx: " << a_beginSearchWithBroadcastIndex;
DEBUG_LOG(m_logger) << "getNextBroadcastTelegramToSend, startIdx: " << a_beginSearchWithBroadcastIndex;
auto iter = m_BroadcastMap.upper_bound(0 == a_beginSearchWithBroadcastIndex ? m_FinishedBroadcastIndex : a_beginSearchWithBroadcastIndex);
while (iter != m_BroadcastMap.end())
{
@@ -318,7 +317,7 @@ void PrtCnvBroadcastMgr::removeExpiredTelegrams()
return;
auto radioTelegram = iter->second;
INFO_LOG() << "Remove expired telegram with telId=" << radioTelegram->getTelID()
INFO_LOG(m_logger) << "Remove expired telegram with telId=" << radioTelegram->getTelID()
<< " and BC=" << radioTelegram->getBroadcastIndex() << " from BC-list";
uint16_t wirkfeldKennung = radioTelegram->getPayloadDataUInt32(5, 2);
removeWirkfeldTelegrams(wirkfeldKennung);
@@ -535,7 +534,7 @@ std::shared_ptr<N_CoPrtCnv::CoPrtCnvRadioTelegram> PrtCnvBroadcastMgr::createAcc
const int idsToSendNow = m_activatedDusMines.size();
if (idsToSendNow > 500)
{
WARNING_LOG() << "More than 500 activated DUS mines in system - this is not allowed!";
WARNING_LOG(m_logger) << "More than 500 activated DUS mines in system - this is not allowed!";
Q_ASSERT(false);
return {};
}
@@ -669,7 +668,7 @@ void PrtCnvBroadcastMgr::getAllFinishedBroadcastsFromDb(const bool a_doRestore)
if (!radioTelegram)
break;
broadcastIndex = radioTelegram->getBroadcastIndex();
INFO_LOG() << "Move Broadcast-telegram from DbThread>BroadcastMgr with telId="
INFO_LOG(m_logger) << "Move Broadcast-telegram from DbThread>BroadcastMgr with telId="
<< radioTelegram->getTelID() << " BC=" << broadcastIndex;
dumpTelegram(m_logger, broadcastIndex, radioTelegram.get());
@@ -696,7 +695,7 @@ void PrtCnvBroadcastMgr::getAllFinishedBroadcastsFromDb(const bool a_doRestore)
static int iBroadcastDumpCounter = 0;
if ((iBroadcastDumpCounter++ % 30) == 0)
{
DEBUG_LOG() << "Dumping broadcast map:";
DEBUG_LOG(m_logger) << "Dumping broadcast map:";
for (const auto &it : m_BroadcastMap)
dumpTelegram(m_logger, it.first, it.second.get());
}
@@ -717,14 +716,14 @@ void PrtCnvBroadcastMgr::getAllFinishedBroadcastsFromDb(const bool a_doRestore)
void PrtCnvBroadcastMgr::addToBroadcastMap(const std::shared_ptr<N_CoPrtCnv::CoPrtCnvRadioTelegram> &a_radioTelegram)
{
INFO_LOG() << "Move from radioList to bcList: BC=" << a_radioTelegram->getBroadcastIndex()
INFO_LOG(m_logger) << "Move from radioList to bcList: BC=" << a_radioTelegram->getBroadcastIndex()
<< " telID=" << a_radioTelegram->getTelID();
switch (a_radioTelegram->getTelID())
{
case GEF_INIT:
case GEF_UMGEBUNGS_MELDUNG2:
ERROR_LOG() << "Internal error: telegram with telId=" << a_radioTelegram->getTelID() << " should never be a normal broadcast";
ERROR_LOG(m_logger) << "Internal error: telegram with telId=" << a_radioTelegram->getTelID() << " should never be a normal broadcast";
break;
case GEF_DATENVERKEHR_TDS_SRT:
@@ -754,11 +753,11 @@ void PrtCnvBroadcastMgr::addToBroadcastMap(const std::shared_ptr<N_CoPrtCnv::CoP
{
const uint16_t wirkfeldKennung = a_radioTelegram->getPayloadDataUInt32(5, 2);
INFO_LOG() << "Adding to braodcast map, Telegram Id: " << a_radioTelegram->getTelID()
INFO_LOG(m_logger) << "Adding to braodcast map, Telegram Id: " << a_radioTelegram->getTelID()
<< ", kennung: " << wirkfeldKennung;
if (isEffectSimulationIdDeactivated(wirkfeldKennung))
{
INFO_LOG() << "Got tele with tel id " << telegramId2String(a_radioTelegram->getTelID())
INFO_LOG(m_logger) << "Got tele with tel id " << telegramId2String(a_radioTelegram->getTelID())
<< ", wirkfeldkennung: " << wirkfeldKennung << ", bcIndex: " << a_radioTelegram->getBroadcastIndex()
<< " but this effect simulation is already deactivated... ignoring";
dumpTelegram(m_logger, a_radioTelegram->getBroadcastIndex(), a_radioTelegram.get());
@@ -796,7 +795,7 @@ void PrtCnvBroadcastMgr::addToBroadcastMap(const std::shared_ptr<N_CoPrtCnv::CoP
else
{
ERROR_LOG() << "Internal error: Got invalid kennung: " << wirkfeldKennung;
ERROR_LOG(m_logger) << "Internal error: Got invalid kennung: " << wirkfeldKennung;
}
break;
}
@@ -805,7 +804,7 @@ void PrtCnvBroadcastMgr::addToBroadcastMap(const std::shared_ptr<N_CoPrtCnv::CoP
{
auto wirkfeldTyp = static_cast<TrainingAreaBase::TetraIcd::AreaEffectSimulationType>(a_radioTelegram->getPayloadDataUInt32(5, 1));
uint16_t wirkfeldKennung = a_radioTelegram->getPayloadDataUInt32(6, 2);
INFO_LOG() << "addToBroadcastMap - Wirkfeld Aenderung Bezeichner for type "
INFO_LOG(m_logger) << "addToBroadcastMap - Wirkfeld Aenderung Bezeichner for type "
<< wirkfeldTyp2Str(wirkfeldTyp) << " - kennung: "
<< wirkfeldKennung;
addWirkfeldTelegram(a_radioTelegram, wirkfeldKennung);
@@ -815,7 +814,7 @@ void PrtCnvBroadcastMgr::addToBroadcastMap(const std::shared_ptr<N_CoPrtCnv::CoP
{
auto wirkfeldTyp = static_cast<TrainingAreaBase::TetraIcd::AreaEffectSimulationType>(a_radioTelegram->getPayloadDataUInt32(5, 1));
uint16_t wirkfeldKennung = a_radioTelegram->getPayloadDataUInt32(6, 2);
INFO_LOG() << "Deaktivierung Wirkfeld for type "
INFO_LOG(m_logger) << "Deaktivierung Wirkfeld for type "
<< wirkfeldTyp2Str(wirkfeldTyp) << " - kennung: "
<< wirkfeldKennung << ", bc: " << a_radioTelegram->getBroadcastIndex();
switch (wirkfeldTyp)
@@ -838,13 +837,13 @@ void PrtCnvBroadcastMgr::addToBroadcastMap(const std::shared_ptr<N_CoPrtCnv::CoP
else
{
ERROR_LOG() << "Internal error: Got invalid kennung: " << wirkfeldKennung;
ERROR_LOG(m_logger) << "Internal error: Got invalid kennung: " << wirkfeldKennung;
}
break;
case TrainingAreaBase::TetraIcd::AreaEffectSimulationType::FunctionalArea:
default:
ERROR_LOG() << "Internal error: WirkfeldTyp " << wirkfeldTyp2Str(wirkfeldTyp) << " in GEF_DEAKTIVIERUNG_WIRKFELD not implemented";
ERROR_LOG(m_logger) << "Internal error: WirkfeldTyp " << wirkfeldTyp2Str(wirkfeldTyp) << " in GEF_DEAKTIVIERUNG_WIRKFELD not implemented";
}
m_BroadcastMap.insert(std::make_pair(a_radioTelegram->getBroadcastIndex(), a_radioTelegram));
break;
@@ -999,7 +998,7 @@ int PrtCnvBroadcastMgr::getSammeltelegramIndex(const std::shared_ptr<N_CoPrtCnv:
nbrLength = 2;
break;
default:
ERROR_LOG() << "Unknown Sammeltelegram with telId=" << a_sammelTelegram->getTelID();
ERROR_LOG(m_logger) << "Unknown Sammeltelegram with telId=" << a_sammelTelegram->getTelID();
return -1;
}
@@ -1027,7 +1026,7 @@ void PrtCnvBroadcastMgr::deactivateSingleMine(const std::shared_ptr<N_CoPrtCnv::
{
removeFromActivatedDusMine(minenkennung);
addToDeactivatedDusMine(minenkennung, a_radioTelegram->getBroadcastIndex());
DEBUG_LOG() << "Deactivating DUS-Mine: " << minenkennung << ", #deactivated mines: " << m_deactivatedBcIndex2DusMine.size();
DEBUG_LOG(m_logger) << "Deactivating DUS-Mine: " << minenkennung << ", #deactivated mines: " << m_deactivatedBcIndex2DusMine.size();
removeDusMineDeactivationFromBroadcastMap(minenkennung);
m_BroadcastMap.insert(std::make_pair(a_radioTelegram->getBroadcastIndex(), a_radioTelegram));
}
@@ -1095,24 +1094,24 @@ bool PrtCnvBroadcastMgr::deactivateEinzelmineFromMinensperre(const uint16_t a_wi
bool dummy;
if (radioTelegram->mustBeSentAsBroadcast(std::numeric_limits<time_t>::max(), dummy, false))
{
INFO_LOG() << "A normal broadcast-telegram WirkfeldStatusMinensperre still exists";
INFO_LOG(m_logger) << "A normal broadcast-telegram WirkfeldStatusMinensperre still exists";
return false;
}
return true;
}
else
ERROR_LOG() << "Got corrupt telegram WirkfeldstatusMinensperre with nbrOfMines=" << nbrOfMines << " and payloadSize=" << radioTelegram->getPayloadSize();
ERROR_LOG(m_logger) << "Got corrupt telegram WirkfeldstatusMinensperre with nbrOfMines=" << nbrOfMines << " and payloadSize=" << radioTelegram->getPayloadSize();
}
else
{
ERROR_LOG() << "Mine with kennung=" << a_minenKennung << " does not fit into status (nbrOfMines=" << nbrOfMines << ")";
ERROR_LOG(m_logger) << "Mine with kennung=" << a_minenKennung << " does not fit into status (nbrOfMines=" << nbrOfMines << ")";
}
return true;
}
++iter;
}
ERROR_LOG() << "Did not find the WirkfeldStatusMinensperre with kennung=" << a_wirkfeldKennung
ERROR_LOG(m_logger) << "Did not find the WirkfeldStatusMinensperre with kennung=" << a_wirkfeldKennung
<< ", therefore deactivated mine with kennung=" << a_minenKennung << " could not be updated.";
return true;
}
@@ -1127,7 +1126,7 @@ void PrtCnvBroadcastMgr::reactivateDusMine(const std::shared_ptr<N_CoPrtCnv::CoP
const uint32_t nbrOfMines = a_radioTelegram->getPayloadDataUInt32(5, 2);
DEBUG_LOG() << "Reactivating DUS-Mines, #mines: " << nbrOfMines;
DEBUG_LOG(m_logger) << "Reactivating DUS-Mines, #mines: " << nbrOfMines;
if (0 == nbrOfMines)
{
@@ -1145,7 +1144,7 @@ void PrtCnvBroadcastMgr::reactivateDusMine(const std::shared_ptr<N_CoPrtCnv::CoP
for (uint32_t i = 0; i < nbrOfMines; i++)
{
const int dusMineId = a_radioTelegram->getPayloadDataUInt32(7 + 2 * i, 2);
DEBUG_LOG() << "Reactivating DUS-Mines, mindId: " << dusMineId;
DEBUG_LOG(m_logger) << "Reactivating DUS-Mines, mindId: " << dusMineId;
removeDusMineDeactivationFromBroadcastMap(dusMineId);
removeFromDeactivatedDusMine(dusMineId);
addToActivatedDusMine(dusMineId);
@@ -1187,11 +1186,11 @@ void PrtCnvBroadcastMgr::addWirkfeldTelegram(const std::shared_ptr<N_CoPrtCnv::C
{
uint16_t mineIndex = radioTelegram->getPayloadDataUInt32(11, 2);
isSameMine = mineIndex == a_minenKennung;
INFO_LOG() << "Mine with kennung=" << a_minenKennung << " found: " << isSameMine;
INFO_LOG(m_logger) << "Mine with kennung=" << a_minenKennung << " found: " << isSameMine;
}
}
else
ERROR_LOG() << "Internal error: Only telegrams 'Deaktivierung_Einzelmine' must be called with a_mineKennung. I proceed without respecting mine-kennung...";
ERROR_LOG(m_logger) << "Internal error: Only telegrams 'Deaktivierung_Einzelmine' must be called with a_mineKennung. I proceed without respecting mine-kennung...";
}
if ((radioTelegram->getTelID() == a_radioTelegram->getTelID() || radioTelegram->getTelID() == a_telId) && isSameMine)
@@ -1205,7 +1204,7 @@ void PrtCnvBroadcastMgr::addWirkfeldTelegram(const std::shared_ptr<N_CoPrtCnv::C
}
INFO_LOG() << "Add kennung: " << a_wirkfeldKennung
INFO_LOG(m_logger) << "Add kennung: " << a_wirkfeldKennung
<< " telId=" << a_radioTelegram->getTelID()
<< " BC=" << a_radioTelegram->getBroadcastIndex();
m_WirkfeldTelegramMapByKennung.insert(std::make_pair(a_wirkfeldKennung, a_radioTelegram));
@@ -1223,7 +1222,7 @@ void PrtCnvBroadcastMgr::addWirkfeldTelegram(const std::shared_ptr<N_CoPrtCnv::C
void PrtCnvBroadcastMgr::removeWirkfeldTelegrams(const uint16_t a_kennung)
{
INFO_LOG() << "Removing all Wirkfeld-Telegrams with kennung=" << a_kennung;
INFO_LOG(m_logger) << "Removing all Wirkfeld-Telegrams with kennung=" << a_kennung;
auto iter = m_WirkfeldTelegramMapByKennung.find(a_kennung);
while (iter != m_WirkfeldTelegramMapByKennung.end())
@@ -1255,7 +1254,7 @@ void PrtCnvBroadcastMgr::removeFromFunktionsAndBroadcastMaps(const uint16_t a_fu
auto radioTelegram = iter->second;
INFO_LOG() << "Removing Funktionsraum-telegram with kennung=" << a_funktionsraumKennung
INFO_LOG(m_logger) << "Removing Funktionsraum-telegram with kennung=" << a_funktionsraumKennung
<< " and BC=" << radioTelegram->getBroadcastIndex();
m_FunktionsraumTelegramMap.erase(iter);
@@ -1281,7 +1280,7 @@ void PrtCnvBroadcastMgr::removeFromTechnikFunktionsAndBroadcastMaps(const uint16
auto radioTelegram = iter->second;
INFO_LOG() << "Removing Funktionsraum-telegram with kennung=" << a_funktionsraumKennung
INFO_LOG(m_logger) << "Removing Funktionsraum-telegram with kennung=" << a_funktionsraumKennung
<< " and BC=" << radioTelegram->getBroadcastIndex();
m_TechnikFunktionsraumTelegramMap.erase(iter);
@@ -1305,7 +1304,7 @@ void PrtCnvBroadcastMgr::removeFromWirkfeldAndBroadcastMaps(const std::multimap<
{
auto radioTelegram = a_wirkfeldTelegramMapByKennungIterator->second;
INFO_LOG() << "Removing wirkfeld-telegram with telId=" << radioTelegram->getTelID()
INFO_LOG(m_logger) << "Removing wirkfeld-telegram with telId=" << radioTelegram->getTelID()
<< ", kennung=" << a_wirkfeldTelegramMapByKennungIterator->first
<< " and BC=" << radioTelegram->getBroadcastIndex()
<< " from byWirkfeldKennung-map";
@@ -1322,7 +1321,7 @@ void PrtCnvBroadcastMgr::removeFromWirkfeldAndBroadcastMaps(const std::multimap<
{
if (iter->second == radioTelegram)
{
INFO_LOG() << "Removing wirkfeld-telegram with telId=" << radioTelegram->getTelID()
INFO_LOG(m_logger) << "Removing wirkfeld-telegram with telId=" << radioTelegram->getTelID()
<< " also from byTime-map";
m_WirkfeldTelegramMapByTime.erase(iter);
break;
@@ -1412,7 +1411,7 @@ void removeFromMap(T &cont, const std::shared_ptr<N_CoPrtCnv::CoPrtCnvRadioTeleg
void PrtCnvBroadcastMgr::removeFromAllMaps(const std::shared_ptr<N_CoPrtCnv::CoPrtCnvRadioTelegram> &a_radioTelegram)
{
INFO_LOG() << "Remove telegram with telId=" << a_radioTelegram->getTelID() << " BC=" << a_radioTelegram->getBroadcastIndex();
INFO_LOG(m_logger) << "Remove telegram with telId=" << a_radioTelegram->getTelID() << " BC=" << a_radioTelegram->getBroadcastIndex();
removeFromBroadcastMap(a_radioTelegram);
@@ -1441,7 +1440,7 @@ void PrtCnvBroadcastMgr::replaceLastTelegramAndAddAtEnd(const std::shared_ptr<N_
{
auto lastRadioTelegram = iter->second;
INFO_LOG() << "remove last telegram with telId=" << lastRadioTelegram->getTelID()
INFO_LOG(m_logger) << "remove last telegram with telId=" << lastRadioTelegram->getTelID()
<< " and BC=" << lastRadioTelegram->getBroadcastIndex();
removeFromBroadcastMap(lastRadioTelegram);
m_LastTelegramMap.erase(iter);
@@ -1450,7 +1449,7 @@ void PrtCnvBroadcastMgr::replaceLastTelegramAndAddAtEnd(const std::shared_ptr<N_
m_BroadcastMap.insert(std::make_pair(a_newRadioTelegram->getBroadcastIndex(), a_newRadioTelegram));
m_LastTelegramMap.insert(std::make_pair(a_newRadioTelegram->getTelID(), a_newRadioTelegram));
INFO_LOG() << "New last telegram with with telId=" << a_newRadioTelegram->getTelID()
INFO_LOG(m_logger) << "New last telegram with with telId=" << a_newRadioTelegram->getTelID()
<< " and BC=" << a_newRadioTelegram->getBroadcastIndex();
}
@@ -1469,7 +1468,7 @@ void PrtCnvBroadcastMgr::moveTelegramInBroadcastMap(const std::shared_ptr<N_CoPr
const std::shared_ptr<N_CoPrtCnv::CoPrtCnvRadioTelegram> &a_attachTelegram)
{
INFO_LOG() << "Move telId=" << a_radioTelegram->getTelID()
INFO_LOG(m_logger) << "Move telId=" << a_radioTelegram->getTelID()
<< " from BC=" << a_radioTelegram->getBroadcastIndex()
<< " to BC=" << a_newBroadcastIndex;
removeFromBroadcastMap(a_radioTelegram);
@@ -1479,7 +1478,7 @@ void PrtCnvBroadcastMgr::moveTelegramInBroadcastMap(const std::shared_ptr<N_CoPr
if (a_attachTelegram && (a_attachTelegram->getTelID() != GEF_REAKTIVIERUNG_DUS_MINE))
{
INFO_LOG() << "Attach telID=" << a_attachTelegram->getTelID()
INFO_LOG(m_logger) << "Attach telID=" << a_attachTelegram->getTelID()
<< " to telID=" << a_radioTelegram->getTelID()
<< " BC=" << a_newBroadcastIndex;
a_radioTelegram->setBroadcastonlyTelegram(a_attachTelegram);
@@ -1534,7 +1533,7 @@ void PrtCnvBroadcastMgr::addBroadcastOnlyTelegramToMap(const std::shared_ptr<N_C
if (m_BroadcastMap.end() == iter)
{
INFO_LOG() << "Insert telId=" << a_broadcastOnlyTelegram->getTelID()
INFO_LOG(m_logger) << "Insert telId=" << a_broadcastOnlyTelegram->getTelID()
<< " as broadcastonly telegram with BC=" << broadcastIndex;
a_broadcastOnlyTelegram->setBroadcastOnly();
m_BroadcastMap.insert(std::make_pair(broadcastIndex, a_broadcastOnlyTelegram));
@@ -1542,7 +1541,7 @@ void PrtCnvBroadcastMgr::addBroadcastOnlyTelegramToMap(const std::shared_ptr<N_C
else
{
INFO_LOG() << "Add telId=" << a_broadcastOnlyTelegram->getTelID()
INFO_LOG(m_logger) << "Add telId=" << a_broadcastOnlyTelegram->getTelID()
<< " as broadcastonly telegram to telegramm with BC=" << iter->second->getBroadcastIndex();
iter->second->setBroadcastonlyTelegram(a_broadcastOnlyTelegram);
}
@@ -1560,15 +1559,15 @@ void PrtCnvBroadcastMgr::detachTelegram(const std::shared_ptr<N_CoPrtCnv::CoPrtC
{
uint16_t broadcastIndex = a_radioTelegram->getBroadcastIndex();
INFO_LOG() << "detach bconly-telegram : telId=" << a_radioTelegram->getTelID() << " BC=" << broadcastIndex;
INFO_LOG(m_logger) << "detach bconly-telegram : telId=" << a_radioTelegram->getTelID() << " BC=" << broadcastIndex;
if (broadcastOnlyTelegram->getBroadcastIndex() != broadcastIndex)
ERROR_LOG() << "Internal error: BC=" << broadcastOnlyTelegram->getBroadcastIndex() << " of attached telegram is not equal BC=" << broadcastIndex;
ERROR_LOG(m_logger) << "Internal error: BC=" << broadcastOnlyTelegram->getBroadcastIndex() << " of attached telegram is not equal BC=" << broadcastIndex;
auto iter = m_BroadcastMap.find(broadcastIndex);
if (iter != m_BroadcastMap.end())
ERROR_LOG() << "Internal error: m_BroadcastMap-entry with BC=" << broadcastIndex << " must not exists";
ERROR_LOG(m_logger) << "Internal error: m_BroadcastMap-entry with BC=" << broadcastIndex << " must not exists";
else
{
INFO_LOG() << "Insert broadcast-only BC=" << broadcastOnlyTelegram->getBroadcastIndex();
INFO_LOG(m_logger) << "Insert broadcast-only BC=" << broadcastOnlyTelegram->getBroadcastIndex();
broadcastOnlyTelegram->setBroadcastOnly();
m_BroadcastMap.insert(std::make_pair(broadcastIndex, broadcastOnlyTelegram));
}
@@ -1583,7 +1582,7 @@ void PrtCnvBroadcastMgr::detachTelegram(const std::shared_ptr<N_CoPrtCnv::CoPrtC
void PrtCnvBroadcastMgr::handleOverrunOfBroadcastCounter(const bool a_doRestore)
{
WARNING_LOG() << "Broadcast-counter reaches maximum => reduce broadcast-list and increment reset-counter";
WARNING_LOG(m_logger) << "Broadcast-counter reaches maximum => reduce broadcast-list and increment reset-counter";
@@ -1631,7 +1630,7 @@ void PrtCnvBroadcastMgr::handleOverrunOfBroadcastCounter(const bool a_doRestore)
}
++iter;
}
INFO_LOG() << "New BC-index for broadcast-telegram with telId=" << radioTelegram->getTelID() << " BC=" << newBroadcastCounter;
INFO_LOG(m_logger) << "New BC-index for broadcast-telegram with telId=" << radioTelegram->getTelID() << " BC=" << newBroadcastCounter;
newBroadcastMap.insert(std::make_pair(newBroadcastCounter, radioTelegram));
}
}
@@ -1642,7 +1641,7 @@ void PrtCnvBroadcastMgr::handleOverrunOfBroadcastCounter(const bool a_doRestore)
cleanAndInit(false);
if (!a_doRestore) m_DbThread->setResetCounter(m_DbThread->getResetCounter() + 1);
WARNING_LOG() << "New broadcast-counter=" << newBroadcastCounter << " new reset-counter=" << (int)m_DbThread->getResetCounter();
WARNING_LOG(m_logger) << "New broadcast-counter=" << newBroadcastCounter << " new reset-counter=" << (int)m_DbThread->getResetCounter();
m_BroadcastIndex = newBroadcastCounter;
}
@@ -1702,7 +1701,7 @@ void PrtCnvBroadcastMgr::incTickAndSetTrafficLoad(const bool a_isHighLoad, const
bool PrtCnvBroadcastMgr::isEffectSimulationIdDeactivated(const uint16_t effectsimulationId) const
{
INFO_LOG() << "Checking deactivation for Id " << effectsimulationId;
INFO_LOG(m_logger) << "Checking deactivation for Id " << effectsimulationId;
return m_deactivatedAesArea2bcIndex.contains(effectsimulationId);
}