|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.cjdbc.controller.core.shutdown.ShutdownThread org.objectweb.cjdbc.controller.core.shutdown.VirtualDatabaseShutdownThread
Abstract class for all implementations of virtual database shutdown strategies.
Field Summary | |
protected VirtualDatabase |
virtualDatabase
|
Fields inherited from class org.objectweb.cjdbc.controller.core.shutdown.ShutdownThread |
logger, shutdownGroup, shutdownLevel |
Constructor Summary | |
VirtualDatabaseShutdownThread(VirtualDatabase vdb,
int level)
Prepare the thread for shutting down. |
Method Summary | |
protected void |
disableAllBackends()
Disable all database backends with a checkpoint named after the current time if a recovery log is available. |
protected void |
shutdownCacheRecoveryLogAndGroupCommunication()
Shutdown the result cache, recovery log and close the distributed virtual database group communication channel (if the virtual database is distributed). |
protected void |
terminateVirtualDatabaseWorkerThreads()
Terminate the VirtualDatabaseWorkerThreads |
protected void |
waitForClientsToDisconnect()
Wait for all VirtualDatabaseWorkerThreads to terminate when all clients have disconnected. |
protected void |
waitForTransactionsAndWritesToComplete()
Wait for currently open transactions and pending writes to complete (in this order: 1.transaction, 2.writes). |
Methods inherited from class org.objectweb.cjdbc.controller.core.shutdown.ShutdownThread |
abortShutdown, getShutdownGroup, getShutdownLevel, run, shutdown |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected VirtualDatabase virtualDatabase
Constructor Detail |
public VirtualDatabaseShutdownThread(VirtualDatabase vdb, int level)
vdb
- the database to shutdownlevel
- Constants.SHUTDOWN_WAIT, Constants.SHUTDOWN_SAFE or
Constants.SHUTDOWN_FORCEMethod Detail |
protected void shutdownCacheRecoveryLogAndGroupCommunication()
protected void disableAllBackends()
protected void terminateVirtualDatabaseWorkerThreads()
protected void waitForClientsToDisconnect()
protected void waitForTransactionsAndWritesToComplete()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |