|
|||||||||||
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
Skeleton for shutdown threads. This includes Controller
,
VirtualDatabase
and DatabaseBackend
shutdown
threads.
Field Summary | |
(package private) Trace |
logger
Logger instance. |
java.lang.ThreadGroup |
shutdownGroup
Group to join onto when shutting down |
protected int |
shutdownLevel
|
Constructor Summary | |
ShutdownThread(int level)
Create a new shutdown thread |
Method Summary | |
void |
abortShutdown(java.lang.Exception cause)
If shutdown fails ... |
java.lang.ThreadGroup |
getShutdownGroup()
Returns the shutdownGroup value. |
int |
getShutdownLevel()
Get shutdown level |
void |
run()
Execute the shutdown |
abstract void |
shutdown()
Specific implementation of the shutdown method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public java.lang.ThreadGroup shutdownGroup
protected int shutdownLevel
Trace logger
Constructor Detail |
public ShutdownThread(int level)
level
- Constants.SHUTDOWN_WAIT, Constants.SHUTDOWN_SAFE or
Constants.SHUTDOWN_FORCEMethod Detail |
public java.lang.ThreadGroup getShutdownGroup()
public int getShutdownLevel()
public void run()
run
in interface java.lang.Runnable
Runnable.run()
public void abortShutdown(java.lang.Exception cause)
cause
- why shutdown was abortedpublic abstract void shutdown() throws ShutdownException
ShutdownException
- if fails
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |