KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ejbca > ui > web > pub > cluster > IHealthCheck


1 /*************************************************************************
2  * *
3  * EJBCA: The OpenSource Certificate Authority *
4  * *
5  * This software is free software; you can redistribute it and/or *
6  * modify it under the terms of the GNU Lesser General Public *
7  * License as published by the Free Software Foundation; either *
8  * version 2.1 of the License, or any later version. *
9  * *
10  * See terms of license at gnu.org. *
11  * *
12  *************************************************************************/

13
14 package org.ejbca.ui.web.pub.cluster;
15
16 import javax.servlet.ServletConfig JavaDoc;
17 import javax.servlet.http.HttpServletRequest JavaDoc;
18
19
20 /**
21  * Inteface used for health polling purposes to see that everything is alive and ok.
22  *
23  * @author Philip Vendil
24  * @version $Id: IHealthCheck.java,v 1.2 2006/02/08 07:31:48 anatom Exp $
25  */

26 public interface IHealthCheck {
27     
28     
29     /**
30      * Method used to initialize the health checker with parameters set
31      * in the web.xml file.
32      *
33      *
34      */

35     public void init(ServletConfig JavaDoc config);
36     
37     /**
38      * Method used to check the health of a specific application.
39      * @return Null if everyting is OK, othervise it should return a String as errormessage.
40      */

41     
42     public String JavaDoc checkHealth(HttpServletRequest JavaDoc request);
43
44 }
45
Popular Tags