monit-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

check - refactoring patch


From: Martin Pala
Subject: check - refactoring patch
Date: Sun, 29 Feb 2004 16:56:48 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040122 Debian/1.6-1

Hi,

i though about validate() simplification - present design utilizes switch to execute appropriate check function in each run.

I think it could be simplified significantly - see attached patch. Each service instance has pointer to given service class specific check function. The pointer to check function is initialized during parser stage => you can call it directly with no extra costs.

If you agree, i can checkout the patch into cvs.

Martin

Attachment: validate.patch
Description: application/unknown


reply via email to

[Prev in Thread] Current Thread [Next in Thread]