View Javadoc

1   package org.apache.geronimo.system.main;
2   
3   import org.apache.geronimo.kernel.Kernel;
4   import org.apache.geronimo.kernel.repository.Artifact;
5   
6   /**
7    * An interface used by the Daemon to convey the status of the server
8    * startup.
9    *
10   * @version $Revision: 1.0$
11   */
12  public interface StartupMonitor {
13      // Normal calls, will generally occur in this order
14      void systemStarting(long startTime);
15      void systemStarted(Kernel kernel);
16      void foundModules(Artifact[] modules);
17      void moduleLoading(Artifact module);
18      void moduleLoaded(Artifact module);
19      void moduleStarting(Artifact module);
20      void moduleStarted(Artifact module);
21      void startupFinished();
22  
23      // Indicate failures during load
24      void serverStartFailed(Exception problem);
25  }