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 ControllerWaitShutdownThread extends ControllerShutdownThread 39 { 40 41 46 public ControllerWaitShutdownThread(Controller controller) 47 { 48 super(controller, Constants.SHUTDOWN_WAIT); 49 } 50 51 54 public void shutdown() throws ShutdownException 55 { 56 logger.info("Starting controller shutdown"); 57 shutdownDatabases(); 58 generateReportIfNeeded(); 59 shutdownJmxAgent(); 60 shutdownServerConnectionThread(0); 61 logger.info("Controller shutdown completed"); 62 } 63 64 } | Popular Tags |