1 23 24 package org.objectweb.cjdbc.controller.core.shutdown; 25 26 import org.objectweb.cjdbc.common.exceptions.ShutdownException; 27 import org.objectweb.cjdbc.common.util.Constants; 28 import org.objectweb.cjdbc.controller.core.Controller; 29 30 38 public class ControllerForceShutdownThread extends ControllerShutdownThread 39 { 40 41 46 public ControllerForceShutdownThread(Controller controller) 47 { 48 super(controller, Constants.SHUTDOWN_FORCE); 49 } 50 51 54 public void shutdown() throws ShutdownException 55 { 56 logger.info("Starting controller shutdown"); 57 shutdownDatabases(); 58 generateReportIfNeeded(); 59 shutdownJmxAgent(); 60 shutdownServerConnectionThread(5000); 62 logger.info("Exiting JVM."); 63 System.exit(0); 64 } 65 66 } | Popular Tags |