View Javadoc

1   package org.minetti.astrodevice.server.core;
2   
3   import org.apache.log4j.Logger;
4   import org.minetti.astrodevice.server.core.module.ModuleManager;
5   
6   /**
7    * Class responsible of server shutdown.
8    * @author Jean-Philippe MINETTI
9    */
10  public final class Shutdown
11  		implements Runnable {
12  
13  	/**
14  	 * Logger.
15  	 */
16  	private static final Logger LOGGER = Logger.getLogger(Shutdown.class);
17  
18  	/*
19  	 * (non-Javadoc)
20  	 * @see java.lang.Runnable#run()
21  	 */
22  	public void run () {
23  		Shutdown.LOGGER.info(About.getInstance() + " stopping");
24  
25  		// TODO Auto-generated method stub
26  
27  		ModuleManager.stop();
28  		Shutdown.LOGGER.info(About.getInstance() + " stopped");
29  	}
30  
31  }