Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

org.objectweb.cjdbc.controller.core.shutdown.ControllerForceShutdownThread Class Reference

Inheritance diagram for org.objectweb.cjdbc.controller.core.shutdown.ControllerForceShutdownThread:

Inheritance graph
[legend]
Collaboration diagram for org.objectweb.cjdbc.controller.core.shutdown.ControllerForceShutdownThread:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ControllerForceShutdownThread (Controller controller)
void shutdown () throws ShutdownException

Detailed Description

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

Author:
Emmanuel Cecchet
Version:
1.0

Definition at line 38 of file ControllerForceShutdownThread.java.


Constructor & Destructor Documentation

org.objectweb.cjdbc.controller.core.shutdown.ControllerForceShutdownThread.ControllerForceShutdownThread Controller  controller  ) 
 

Creates a new ControllerWaitShutdownThread object

Parameters:
controller the controller to shutdown

Definition at line 46 of file ControllerForceShutdownThread.java.

00047   {
00048     super(controller, Constants.SHUTDOWN_WAIT);
00049   }


Member Function Documentation

void org.objectweb.cjdbc.controller.core.shutdown.ControllerForceShutdownThread.shutdown  )  throws ShutdownException [virtual]
 

See also:
org.objectweb.cjdbc.controller.core.shutdown.ShutdownThread.shutdown()

Implements org.objectweb.cjdbc.controller.core.shutdown.ShutdownThread.

Definition at line 54 of file ControllerForceShutdownThread.java.

References org.objectweb.cjdbc.controller.core.shutdown.ControllerShutdownThread.generateReportIfNeeded(), org.objectweb.cjdbc.common.log.Trace.info(), org.objectweb.cjdbc.controller.core.shutdown.ControllerShutdownThread.shutdownDatabases(), org.objectweb.cjdbc.controller.core.shutdown.ControllerShutdownThread.shutdownJmxAgent(), and org.objectweb.cjdbc.controller.core.shutdown.ControllerShutdownThread.shutdownServerConnectionThread().

00055   {
00056     logger.info("Starting controller shutdown");
00057     shutdownDatabases();
00058     generateReportIfNeeded();
00059     shutdownJmxAgent();
00060     // Wait for a maximum of 5 seconds for thread termination.
00061     shutdownServerConnectionThread(5000);
00062     logger.info("Exiting JVM.");
00063     System.exit(0);
00064   }


The documentation for this class was generated from the following file:
Generated on Mon Apr 11 22:03:46 2005 for C-JDBC by  doxygen 1.3.9.1