using namespace icinga;
+EXPORT_COMPONENT(checker, CheckerComponent);
+
void CheckerComponent::Start(void)
{
m_Endpoint = Endpoint::MakeEndpoint("checker", false);
m_IdleServices.erase(service);
m_PendingServices.erase(service);
}
-
-EXPORT_COMPONENT(checker, CheckerComponent);
-
using namespace icinga;
+EXPORT_COMPONENT(compat, CompatComponent);
+
/**
* Hint: The reason why we're using "\n" rather than std::endl is because
* std::endl also _flushes_ the output stream which severely degrades
if (rename(objectspathtmp.CStr(), objectspath.CStr()) < 0)
BOOST_THROW_EXCEPTION(PosixException("rename() failed", errno));
}
-
-EXPORT_COMPONENT(compat, CompatComponent);
using namespace icinga;
+EXPORT_COMPONENT(compatido, CompatIdoComponent);
+
const String CompatIdoComponent::DefaultSocketAddress = "127.0.0.1";
const String CompatIdoComponent::DefaultSocketPort = "5668";
const String CompatIdoComponent::DefaultInstanceName = "i2-default";
DumpServiceStatus(service);
}
}
-
-
-EXPORT_COMPONENT(compatido, CompatIdoComponent);
using namespace icinga;
+EXPORT_COMPONENT(delegation, DelegationComponent);
+
void DelegationComponent::Start(void)
{
m_DelegationTimer = boost::make_shared<Timer>();
msgbuf << "Updated delegations for " << delegated << " services";
Logger::Write(LogInformation, "delegation", msgbuf.str());
}
-
-EXPORT_COMPONENT(delegation, DelegationComponent);
using namespace icinga;
+EXPORT_COMPONENT(demo, DemoComponent);
+
/**
* Starts the component.
*/
Logger::Write(LogInformation, "demo", "Got 'hello world' from identity=" +
(sender ? sender->GetName() : "(anonymous)"));
}
-
-EXPORT_COMPONENT(demo, DemoComponent);
using namespace icinga;
+EXPORT_COMPONENT(notification, NotificationComponent);
+
/**
* Starts the component.
*/
{
// TODO: implement
}
-
-EXPORT_COMPONENT(notification, NotificationComponent);
using namespace icinga;
+EXPORT_COMPONENT(replication, ReplicationComponent);
+
/**
* Starts the component.
*/
object->Unregister();
}
}
-
-EXPORT_COMPONENT(replication, ReplicationComponent);