Public Member Functions | |
ShutdownThread (int level) | |
ThreadGroup | getShutdownGroup () |
int | getShutdownLevel () |
void | run () |
void | abortShutdown (Exception cause) |
abstract void | shutdown () throws ShutdownException |
Public Attributes | |
ThreadGroup | shutdownGroup = new ThreadGroup("shutdown" + new Date()) |
Protected Attributes | |
int | shutdownLevel |
Package Attributes | |
Trace | logger |
Controller
, VirtualDatabase
and DatabaseBackend
shutdown threads.
Definition at line 41 of file ShutdownThread.java.
|
Create a new shutdown thread
Definition at line 58 of file ShutdownThread.java. References org.objectweb.cjdbc.controller.core.shutdown.ShutdownThread.logger. 00059 { 00060 this.shutdownLevel = level; 00061 logger = Trace.getLogger("org.objectweb.cjdbc.controller.shutdown"); 00062 }
|
|
If shutdown fails ...
Definition at line 107 of file ShutdownThread.java. References org.objectweb.cjdbc.controller.core.shutdown.ShutdownThread.logger. Referenced by org.objectweb.cjdbc.controller.core.shutdown.ShutdownThread.run(). 00108 { 00109 logger.info(Translate.get("controller.shutdown.aborted", cause)); 00110 }
|
|
Returns the shutdownGroup value.
Definition at line 69 of file ShutdownThread.java. Referenced by org.objectweb.cjdbc.controller.virtualdatabase.VirtualDatabase.shutdown(), and org.objectweb.cjdbc.controller.core.Controller.shutdown(). 00070 {
00071 return shutdownGroup;
00072 }
|
|
Get shutdown level
Definition at line 79 of file ShutdownThread.java. 00080 { 00081 return this.shutdownLevel; 00082 }
|
|
Execute the shutdown
Definition at line 89 of file ShutdownThread.java. References org.objectweb.cjdbc.controller.core.shutdown.ShutdownThread.abortShutdown(), and org.objectweb.cjdbc.controller.core.shutdown.ShutdownThread.shutdown(). 00090 { 00091 try 00092 { 00093 shutdown(); 00094 } 00095 catch (ShutdownException se) 00096 { 00097 se.printStackTrace(); 00098 abortShutdown(se); 00099 } 00100 }
|
|
Specific implementation of the shutdown method.
Implemented in org.objectweb.cjdbc.controller.core.shutdown.ControllerForceShutdownThread, org.objectweb.cjdbc.controller.core.shutdown.ControllerSafeShutdownThread, org.objectweb.cjdbc.controller.core.shutdown.ControllerWaitShutdownThread, org.objectweb.cjdbc.controller.core.shutdown.VirtualDatabaseForceShutdownThread, org.objectweb.cjdbc.controller.core.shutdown.VirtualDatabaseSafeShutdownThread, and org.objectweb.cjdbc.controller.core.shutdown.VirtualDatabaseWaitShutdownThread. Referenced by org.objectweb.cjdbc.controller.core.shutdown.ShutdownThread.run(). |
|
Initial value: Trace
.getLogger("org.objectweb.cjdbc.controller.shutdown")
Definition at line 49 of file ShutdownThread.java. Referenced by org.objectweb.cjdbc.controller.core.shutdown.ShutdownThread.abortShutdown(), and org.objectweb.cjdbc.controller.core.shutdown.ShutdownThread.ShutdownThread(). |
|
Group to join onto when shutting down Definition at line 44 of file ShutdownThread.java. |