| 111 | } |
| 112 | |
| 113 | void Notification::OnAllConfigLoaded() |
| 114 | { |
| 115 | ObjectImpl<Notification>::OnAllConfigLoaded(); |
| 116 | |
| 117 | Host::Ptr host = Host::GetByName(GetHostName()); |
| 118 | |
| 119 | if (GetServiceName().IsEmpty()) |
| 120 | m_Checkable = host; |
| 121 | else |
| 122 | m_Checkable = host->GetServiceByShortName(GetServiceName()); |
| 123 | |
| 124 | if (!m_Checkable) |
| 125 | BOOST_THROW_EXCEPTION(ScriptError("Notification object refers to a host/service which doesn't exist.", GetDebugInfo())); |
| 126 | |
| 127 | GetCheckable()->RegisterNotification(this); |
| 128 | } |
| 129 | |
| 130 | void Notification::Start(bool runtimeCreated) |
| 131 | { |
nothing calls this directly
no test coverage detected