mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-24 06:05:01 +02:00
Move EXPORT_COMPONENT() macros to the beginning of the files.
Fixes #3654
This commit is contained in:
parent
34d4f32398
commit
b14027ec73
@ -21,6 +21,8 @@
|
|||||||
|
|
||||||
using namespace icinga;
|
using namespace icinga;
|
||||||
|
|
||||||
|
EXPORT_COMPONENT(checker, CheckerComponent);
|
||||||
|
|
||||||
void CheckerComponent::Start(void)
|
void CheckerComponent::Start(void)
|
||||||
{
|
{
|
||||||
m_Endpoint = Endpoint::MakeEndpoint("checker", false);
|
m_Endpoint = Endpoint::MakeEndpoint("checker", false);
|
||||||
@ -193,6 +195,3 @@ void CheckerComponent::ObjectRemovedHandler(const DynamicObject::Ptr& object)
|
|||||||
m_IdleServices.erase(service);
|
m_IdleServices.erase(service);
|
||||||
m_PendingServices.erase(service);
|
m_PendingServices.erase(service);
|
||||||
}
|
}
|
||||||
|
|
||||||
EXPORT_COMPONENT(checker, CheckerComponent);
|
|
||||||
|
|
||||||
|
@ -21,6 +21,8 @@
|
|||||||
|
|
||||||
using namespace icinga;
|
using namespace icinga;
|
||||||
|
|
||||||
|
EXPORT_COMPONENT(compat, CompatComponent);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Hint: The reason why we're using "\n" rather than std::endl is because
|
* Hint: The reason why we're using "\n" rather than std::endl is because
|
||||||
* std::endl also _flushes_ the output stream which severely degrades
|
* std::endl also _flushes_ the output stream which severely degrades
|
||||||
@ -546,5 +548,3 @@ void CompatComponent::StatusTimerHandler(void)
|
|||||||
if (rename(objectspathtmp.CStr(), objectspath.CStr()) < 0)
|
if (rename(objectspathtmp.CStr(), objectspath.CStr()) < 0)
|
||||||
BOOST_THROW_EXCEPTION(PosixException("rename() failed", errno));
|
BOOST_THROW_EXCEPTION(PosixException("rename() failed", errno));
|
||||||
}
|
}
|
||||||
|
|
||||||
EXPORT_COMPONENT(compat, CompatComponent);
|
|
||||||
|
@ -21,6 +21,8 @@
|
|||||||
|
|
||||||
using namespace icinga;
|
using namespace icinga;
|
||||||
|
|
||||||
|
EXPORT_COMPONENT(compatido, CompatIdoComponent);
|
||||||
|
|
||||||
const String CompatIdoComponent::DefaultSocketAddress = "127.0.0.1";
|
const String CompatIdoComponent::DefaultSocketAddress = "127.0.0.1";
|
||||||
const String CompatIdoComponent::DefaultSocketPort = "5668";
|
const String CompatIdoComponent::DefaultSocketPort = "5668";
|
||||||
const String CompatIdoComponent::DefaultInstanceName = "i2-default";
|
const String CompatIdoComponent::DefaultInstanceName = "i2-default";
|
||||||
@ -835,6 +837,3 @@ void CompatIdoComponent::DumpStatusData(void)
|
|||||||
DumpServiceStatus(service);
|
DumpServiceStatus(service);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
EXPORT_COMPONENT(compatido, CompatIdoComponent);
|
|
||||||
|
@ -22,6 +22,8 @@
|
|||||||
|
|
||||||
using namespace icinga;
|
using namespace icinga;
|
||||||
|
|
||||||
|
EXPORT_COMPONENT(delegation, DelegationComponent);
|
||||||
|
|
||||||
void DelegationComponent::Start(void)
|
void DelegationComponent::Start(void)
|
||||||
{
|
{
|
||||||
m_DelegationTimer = boost::make_shared<Timer>();
|
m_DelegationTimer = boost::make_shared<Timer>();
|
||||||
@ -203,5 +205,3 @@ void DelegationComponent::DelegationTimerHandler(void)
|
|||||||
msgbuf << "Updated delegations for " << delegated << " services";
|
msgbuf << "Updated delegations for " << delegated << " services";
|
||||||
Logger::Write(LogInformation, "delegation", msgbuf.str());
|
Logger::Write(LogInformation, "delegation", msgbuf.str());
|
||||||
}
|
}
|
||||||
|
|
||||||
EXPORT_COMPONENT(delegation, DelegationComponent);
|
|
||||||
|
@ -21,6 +21,8 @@
|
|||||||
|
|
||||||
using namespace icinga;
|
using namespace icinga;
|
||||||
|
|
||||||
|
EXPORT_COMPONENT(demo, DemoComponent);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Starts the component.
|
* Starts the component.
|
||||||
*/
|
*/
|
||||||
@ -71,5 +73,3 @@ void DemoComponent::HelloWorldRequestHandler(const Endpoint::Ptr& sender,
|
|||||||
Logger::Write(LogInformation, "demo", "Got 'hello world' from identity=" +
|
Logger::Write(LogInformation, "demo", "Got 'hello world' from identity=" +
|
||||||
(sender ? sender->GetName() : "(anonymous)"));
|
(sender ? sender->GetName() : "(anonymous)"));
|
||||||
}
|
}
|
||||||
|
|
||||||
EXPORT_COMPONENT(demo, DemoComponent);
|
|
||||||
|
@ -21,6 +21,8 @@
|
|||||||
|
|
||||||
using namespace icinga;
|
using namespace icinga;
|
||||||
|
|
||||||
|
EXPORT_COMPONENT(notification, NotificationComponent);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Starts the component.
|
* Starts the component.
|
||||||
*/
|
*/
|
||||||
@ -48,5 +50,3 @@ void NotificationComponent::NotificationTimerHandler(void)
|
|||||||
{
|
{
|
||||||
// TODO: implement
|
// TODO: implement
|
||||||
}
|
}
|
||||||
|
|
||||||
EXPORT_COMPONENT(notification, NotificationComponent);
|
|
||||||
|
@ -21,6 +21,8 @@
|
|||||||
|
|
||||||
using namespace icinga;
|
using namespace icinga;
|
||||||
|
|
||||||
|
EXPORT_COMPONENT(replication, ReplicationComponent);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Starts the component.
|
* Starts the component.
|
||||||
*/
|
*/
|
||||||
@ -248,5 +250,3 @@ void ReplicationComponent::RemoteObjectRemovedHandler(const RequestMessage& requ
|
|||||||
object->Unregister();
|
object->Unregister();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
EXPORT_COMPONENT(replication, ReplicationComponent);
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user