2012-06-13 13:42:55 +02:00
|
|
|
#ifndef SERVICE_H
|
|
|
|
#define SERVICE_H
|
|
|
|
|
|
|
|
namespace icinga
|
|
|
|
{
|
|
|
|
|
|
|
|
class I2_ICINGA_API Service : public ConfigObjectAdapter
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Service(const ConfigObject::Ptr& configObject)
|
|
|
|
: ConfigObjectAdapter(configObject)
|
|
|
|
{ }
|
|
|
|
|
|
|
|
string GetDisplayName(void) const;
|
|
|
|
Host GetHost(void) const;
|
|
|
|
Dictionary::Ptr GetMacros(void) const;
|
|
|
|
string GetCheckType(void) const;
|
|
|
|
string GetCheckCommand(void) const;
|
|
|
|
long GetMaxCheckAttempts(void) const;
|
|
|
|
long GetCheckInterval(void) const;
|
|
|
|
long GetRetryInterval(void) const;
|
2012-06-14 11:18:20 +02:00
|
|
|
|
|
|
|
void SetNextCheck(time_t nextCheck);
|
|
|
|
time_t GetNextCheck(void) const;
|
2012-06-16 20:44:24 +02:00
|
|
|
void SetChecker(string checker);
|
|
|
|
string GetChecker(void) const;
|
2012-06-17 22:46:40 +02:00
|
|
|
void SetPendingCheck(bool pending);
|
|
|
|
bool HasPendingCheck(void) const;
|
2012-06-13 13:42:55 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2012-06-16 20:44:24 +02:00
|
|
|
#endif /* SERVICE_H */
|