org.objectweb.cjdbc.controller.core.shutdown
Class VirtualDatabaseWaitShutdownThread

java.lang.Object
  extended byorg.objectweb.cjdbc.controller.core.shutdown.ShutdownThread
      extended byorg.objectweb.cjdbc.controller.core.shutdown.VirtualDatabaseShutdownThread
          extended byorg.objectweb.cjdbc.controller.core.shutdown.VirtualDatabaseWaitShutdownThread
All Implemented Interfaces:
java.lang.Runnable

public class VirtualDatabaseWaitShutdownThread
extends VirtualDatabaseShutdownThread

This thread waits for all clients to terminate their connections before shutting down the virtual database.

Version:
1.0
Author:
Emmanuel Cecchet

Field Summary
 
Fields inherited from class org.objectweb.cjdbc.controller.core.shutdown.VirtualDatabaseShutdownThread
virtualDatabase
 
Fields inherited from class org.objectweb.cjdbc.controller.core.shutdown.ShutdownThread
logger, shutdownGroup, shutdownLevel
 
Constructor Summary
VirtualDatabaseWaitShutdownThread(VirtualDatabase vdb)
          Creates a new VirtualDatabaseSafeShutdownThread object
 
Method Summary
 void shutdown()
          Specific implementation of the shutdown method.
 
Methods inherited from class org.objectweb.cjdbc.controller.core.shutdown.VirtualDatabaseShutdownThread
disableAllBackends, shutdownCacheRecoveryLogAndGroupCommunication, terminateVirtualDatabaseWorkerThreads, waitForClientsToDisconnect, waitForTransactionsAndWritesToComplete
 
Methods inherited from class org.objectweb.cjdbc.controller.core.shutdown.ShutdownThread
abortShutdown, getShutdownGroup, getShutdownLevel, run
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VirtualDatabaseWaitShutdownThread

public VirtualDatabaseWaitShutdownThread(VirtualDatabase vdb)
Creates a new VirtualDatabaseSafeShutdownThread object

Parameters:
vdb - the VirtualDatabase to shutdown
Method Detail

shutdown

public void shutdown()
              throws ShutdownException
Description copied from class: ShutdownThread
Specific implementation of the shutdown method.

Specified by:
shutdown in class ShutdownThread
Throws:
ShutdownException - if fails
See Also:
ShutdownThread.shutdown()


Copyright © 2002, 2005 - ObjectWeb Consortium - All Rights Reserved.