RegisterAttribute("checkers", Attribute_Config, &m_Checkers);
RegisterAttribute("event_command", Attribute_Config, &m_EventCommand);
+ RegisterAttribute("volatile", Attribute_Config, &m_Volatile);
RegisterAttribute("next_check", Attribute_Replicated, &m_NextCheck);
RegisterAttribute("current_checker", Attribute_Replicated, &m_CurrentChecker);
return true;
}
+bool Service::IsVolatile(void) const
+{
+ if (m_Volatile.IsEmpty())
+ return false;
+
+ return m_Volatile;
+}
+
AcknowledgementType Service::GetAcknowledgement(void)
{
ASSERT(OwnsLock());
std::set<Host::Ptr> GetParentHosts(void) const;
std::set<Service::Ptr> GetParentServices(void) const;
+ bool IsVolatile(void) const;
+
bool IsReachable(void) const;
AcknowledgementType GetAcknowledgement(void);
Attribute<long> m_Acknowledgement;
Attribute<double> m_AcknowledgementExpiry;
Attribute<String> m_HostName;
+ Attribute<bool> m_Volatile;
/* Checks */
Attribute<String> m_CheckCommand;