|
|||||||||||
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
Skeleton for shutdown threads. This includes Controller
,
VirtualDatabase
and DatabaseBackend
shutdown
threads.
Field Summary | |
static java.lang.String |
BACKEND
Backend Thread |
static java.lang.String |
CONTROLLER
Controller Thread |
static java.lang.String |
DATABASE
Database Thread |
(package private) Trace |
logger
Logger instance. |
protected java.lang.String |
name
|
java.lang.ThreadGroup |
shutdownGroup
Group to join onto when shutting down |
protected int |
shutdownLevel
|
protected java.lang.String |
type
|
Constructor Summary | |
ShutdownThread(int level,
java.lang.String type,
java.lang.String name)
Create a new shutdown thread |
Method Summary | |
void |
abortShutdown(java.lang.Exception cause)
If shutdown fails ... |
protected void |
beforeShutdown()
|
java.lang.ThreadGroup |
getShutdownGroup()
Returns the shutdownGroup value. |
int |
getShutdownLevel()
Get shutdown level |
java.lang.String |
getShutdownType()
Get shutdown type |
protected void |
postShutdown()
|
void |
run()
Execute the shutdown |
abstract void |
shutdownFast()
Wait for all clients to finish transaction and then force disconnection. |
abstract void |
shutdownImmediate()
Force immediate shutdown. |
abstract void |
shutdownSmart()
Wait for all clients to finish transaction and disconnect. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String CONTROLLER
public static final java.lang.String DATABASE
public static final java.lang.String BACKEND
public java.lang.ThreadGroup shutdownGroup
protected int shutdownLevel
Trace logger
protected java.lang.String type
protected java.lang.String name
Constructor Detail |
public ShutdownThread(int level, java.lang.String type, java.lang.String name)
level
- Immediate,Smart,Fasttype
- of shutdown thread for loggingname
- of element to shutdownMethod Detail |
public void run()
run
in interface java.lang.Runnable
Runnable.run()
protected void beforeShutdown()
protected void postShutdown()
public java.lang.String getShutdownType()
controller
,database
or backend
public int getShutdownLevel()
public void abortShutdown(java.lang.Exception cause)
cause
- why shutdown was abortedpublic abstract void shutdownSmart() throws ShutdownException
ShutdownException
- if failspublic abstract void shutdownFast() throws ShutdownException
ShutdownException
- if failspublic abstract void shutdownImmediate() throws ShutdownException
ShutdownException
- if failspublic java.lang.ThreadGroup getShutdownGroup()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |