|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.objectweb.cjdbc.controller.core.shutdown.ShutdownThread
org.objectweb.cjdbc.controller.core.shutdown.ControllerShutdownThread
Executes all the work for shutting down a controller. This implies, blocking new clients, waiting for current clients to finish their transaction or disconnect them. Shutdown databases by shutting down backends and storing checkpoints
| Field Summary | |
private Controller |
controller
|
private ReportManager |
report
|
private boolean |
systemExit
|
| Fields inherited from class org.objectweb.cjdbc.controller.core.shutdown.ShutdownThread |
BACKEND, CONTROLLER, DATABASE, logger, name, shutdownGroup, shutdownLevel, type |
| Constructor Summary | |
ControllerShutdownThread(Controller controller,
int ilevel)
Prepare the thread for shutting down. |
|
| Method Summary | |
protected void |
beforeShutdown()
|
void |
setSystemExit(boolean systemExit)
Sets the systemExit value. |
protected void |
shutdown()
|
private void |
shutdownDatabases(int level)
|
void |
shutdownFast()
Wait for all clients to finish transaction and then force disconnection. |
void |
shutdownImmediate()
Force immediate shutdown. |
private void |
shutdownJmxAgent()
|
private void |
shutdownServerConnectionThread()
|
void |
shutdownSmart()
Wait for all clients to finish transaction and disconnect. |
| Methods inherited from class org.objectweb.cjdbc.controller.core.shutdown.ShutdownThread |
abortShutdown, getShutdownGroup, getShutdownLevel, getShutdownType, postShutdown, run |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private Controller controller
private ReportManager report
private boolean systemExit
| Constructor Detail |
public ControllerShutdownThread(Controller controller,
int ilevel)
controller - the controller to shutdownilevel - the level Smart,Fast,Immediate| Method Detail |
public void shutdownImmediate()
ShutdownThread
shutdownImmediate in class ShutdownThreadShutdownThread.shutdownImmediate()protected void beforeShutdown()
beforeShutdown in class ShutdownThreadprotected void shutdown()
public void shutdownSmart()
throws ShutdownException
ShutdownThread
shutdownSmart in class ShutdownThreadShutdownException - if failsShutdownThread.shutdownSmart()
public void shutdownFast()
throws ShutdownException
ShutdownThread
shutdownFast in class ShutdownThreadShutdownException - if failsShutdownThread.shutdownFast()private void shutdownJmxAgent()
private void shutdownDatabases(int level)
private void shutdownServerConnectionThread()
throws ShutdownException
ShutdownExceptionpublic void setSystemExit(boolean systemExit)
systemExit - The systemExit to set.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||