View Javadoc

1   /*
2    * Created on 03-Nov-2004
3    */
4   package org.jdiagnose.runtime;
5   
6   import java.util.List;
7   
8   /***
9    * @author jmccrindle
10   */
11  public interface DiagnosticRunner {
12  
13      DiagnosticContainerResult run();
14  
15      DiagnosticContainerResult runAsynchronously() throws InterruptedException;
16      
17      DiagnosticContainerResult getContainerResult();
18      
19      boolean isRunning();
20      
21      void setRunListeners(List runListeners);
22      
23      void setResultListeners(List resultListeners);
24  
25      void addRunListener(RunListener runListener);
26  
27      void removeRunListener(RunListener runListener);
28  
29      void addResultListener(ResultListener resultListener);
30  
31      void removeResultListener(ResultListener resultListener);
32  }