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.virtualdatabase.VirtualDatabase; 29 30 38 public class VirtualDatabaseWaitShutdownThread 39 extends VirtualDatabaseShutdownThread 40 { 41 42 47 public VirtualDatabaseWaitShutdownThread(VirtualDatabase vdb) 48 { 49 super(vdb, Constants.SHUTDOWN_WAIT); 50 } 51 52 55 public void shutdown() throws ShutdownException 56 { 57 this.waitForClientsToDisconnect(); 58 this.terminateVirtualDatabaseWorkerThreads(); 59 this.disableAllBackends(); 60 this.shutdownCacheRecoveryLogAndGroupCommunication(); 61 } 62 63 } | Popular Tags |