Adds immediate migration results in progress
This commit is contained in:
2102 files changed
+17482
-15071
No files matched your search
@@ -23,17 +23,16 @@ namespace RoutingService
|
||||
Connection::Connection(const dds::domain::DomainParticipant &domainParticipant,
|
||||
const std::string &partition,
|
||||
const std::vector<TopicDispatcherInterface *> &topicsToRoute,
|
||||
const std::string &desc)
|
||||
: m_output(nullptr)
|
||||
const std::string &desc) : m_output(nullptr)
|
||||
, m_domainParticipant(domainParticipant)
|
||||
, m_publisher(new DDSConnector::Publisher(domainParticipant, partition))
|
||||
, m_subscriber(new DDSConnector::Subscriber(domainParticipant, partition, false))
|
||||
, m_dataWriterTask(nullptr)
|
||||
, m_topicsToRoute(topicsToRoute)
|
||||
, m_partition(partition)
|
||||
, m_description(desc)
|
||||
{
|
||||
INFO_LOG() << "Create connection: " << partition
|
||||
, m_description(desc),
|
||||
m_logger(NGL::NGLLoggerBootstrap::getLogger()) {
|
||||
INFO_LOG(m_logger) << "Create connection: " << partition
|
||||
<< ", domain: " << domainParticipant.domain_id()
|
||||
<< ", direction: " << m_description
|
||||
<< " (" << this << ")";
|
||||
@@ -50,7 +49,7 @@ Connection::~Connection()
|
||||
}
|
||||
catch (const dds::core::Exception &ex)
|
||||
{
|
||||
ERROR_LOG() << "sub close ex: " << ex.what();
|
||||
ERROR_LOG(m_logger) << "sub close ex: " << ex.what();
|
||||
}
|
||||
m_subscriber = nullptr;
|
||||
try
|
||||
@@ -60,7 +59,7 @@ Connection::~Connection()
|
||||
}
|
||||
catch (const dds::core::Exception &ex)
|
||||
{
|
||||
ERROR_LOG() << "pub close ex: " << ex.what();
|
||||
ERROR_LOG(m_logger) << "pub close ex: " << ex.what();
|
||||
}
|
||||
m_publisher = nullptr;
|
||||
m_domainParticipant = nullptr;
|
||||
@@ -76,7 +75,7 @@ void Connection::setOutput(Connection *output)
|
||||
|
||||
bool Connection::initialize()
|
||||
{
|
||||
DEBUG_LOG() << "initialize new connection for " << m_partition
|
||||
DEBUG_LOG(m_logger) << "initialize new connection for " << m_partition
|
||||
<< ", direction: " << m_description
|
||||
<< " (" << this << ")";
|
||||
|
||||
@@ -87,7 +86,7 @@ bool Connection::initialize()
|
||||
|
||||
if (!m_output)
|
||||
{
|
||||
ERROR_LOG() << "Error initializing connection for " << m_partition
|
||||
ERROR_LOG(m_logger) << "Error initializing connection for " << m_partition
|
||||
<< ", direction: " << m_description << " - no output set!";
|
||||
return false;
|
||||
}
|
||||
@@ -103,7 +102,7 @@ void Connection::shutdown()
|
||||
QElapsedTimer timer;
|
||||
timer.start();
|
||||
|
||||
DEBUG_LOG() << "shutting down connection for " << m_partition
|
||||
DEBUG_LOG(m_logger) << "shutting down connection for " << m_partition
|
||||
<< ", direction: " << m_description
|
||||
<< " (" << this << "), dwt: " << m_dataWriterTask.get();
|
||||
|
||||
@@ -152,7 +151,7 @@ dds::sub::Subscriber Connection::subscriber() const
|
||||
|
||||
bool Connection::initTopics()
|
||||
{
|
||||
DEBUG_LOG() << "Init topics for " << m_partition
|
||||
DEBUG_LOG(m_logger) << "Init topics for " << m_partition
|
||||
<< ", direction: " << m_description;
|
||||
|
||||
if (!m_output)
|
||||
|
||||
Reference in new issue
Block a user