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

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

public class ControllerSafeShutdownThread
extends ControllerShutdownThread

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

Version:
1.0
Author:
Emmanuel Cecchet

Field Summary
 
Fields inherited from class org.objectweb.cjdbc.controller.core.shutdown.ControllerShutdownThread
controller
 
Fields inherited from class org.objectweb.cjdbc.controller.core.shutdown.ShutdownThread
logger, shutdownGroup, shutdownLevel
 
Constructor Summary
ControllerSafeShutdownThread(Controller controller)
          Creates a new ControllerWaitShutdownThread object
 
Method Summary
 void shutdown()
          Specific implementation of the shutdown method.
 
Methods inherited from class org.objectweb.cjdbc.controller.core.shutdown.ControllerShutdownThread
generateReportIfNeeded, shutdownDatabases, shutdownJmxAgent, shutdownServerConnectionThread
 
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

ControllerSafeShutdownThread

public ControllerSafeShutdownThread(Controller controller)
Creates a new ControllerWaitShutdownThread object

Parameters:
controller - the controller 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.