1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.jdiagnose;
17
18 /***
19 * This is the primary interface for JDiagnose. Classes that implement this interface
20 * are expected to have a name and possibly some children. Once the diagnose method
21 * is called, the Diagnostic should notify listeners of the progress or the diagnosis.
22 *
23 * User: jamie
24 * Date: May 29, 2004
25 * Time: 10:19:56 PM
26 */
27 public interface Diagnostic {
28
29 /***
30 * Returns the name of the diagnostic. Should be a Fully Qualified Name, usually
31 * defaults to the classname (and method name in the case of the DiagnosticUnit)
32 *
33 * @return the name of the diagnostic
34 */
35 String getName();
36
37 /***
38 * Run this diagnostic.
39 * @throws DiagnosticException if the diagnostic failed
40 */
41 void diagnose() throws DiagnosticException;
42
43 }