Added freshness_interval config setting.

This commit is contained in:
Gunnar Beutner 2012-07-02 15:08:54 +02:00
parent a1423371d0
commit 9a0cae862a
2 changed files with 10 additions and 0 deletions

View File

@ -84,6 +84,15 @@ long Service::GetRetryInterval(void) const
return value; return value;
} }
long Service::GetFreshnessInterval(void) const
{
long value;
if (!GetConfigObject()->GetProperty("freshness_interval", &value));
value = GetCheckInterval() * 3;
return value;
}
Dictionary::Ptr Service::GetDependencies(void) const Dictionary::Ptr Service::GetDependencies(void) const
{ {
Dictionary::Ptr value; Dictionary::Ptr value;

View File

@ -40,6 +40,7 @@ public:
long GetMaxCheckAttempts(void) const; long GetMaxCheckAttempts(void) const;
long GetCheckInterval(void) const; long GetCheckInterval(void) const;
long GetRetryInterval(void) const; long GetRetryInterval(void) const;
long GetFreshnessInterval(void) const;
Dictionary::Ptr GetDependencies(void) const; Dictionary::Ptr GetDependencies(void) const;
Dictionary::Ptr GetGroups(void) const; Dictionary::Ptr GetGroups(void) const;