|
|||||||||||
| 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
Abstract class for all implementations of controller shutdown strategies.
| Field Summary | |
protected Controller |
controller
|
| Fields inherited from class org.objectweb.cjdbc.controller.core.shutdown.ShutdownThread |
logger, shutdownGroup, shutdownLevel |
| Constructor Summary | |
ControllerShutdownThread(Controller controller,
int level)
Prepare the thread for shutting down. |
|
| Method Summary | |
protected void |
generateReportIfNeeded()
Generate a controller report if it has been enabled in the config file. |
protected void |
shutdownDatabases()
Shutdown all databases of this controller using the current shutdown level. |
protected void |
shutdownJmxAgent()
Shutdown the JMX Agent. |
protected void |
shutdownServerConnectionThread(int joinTimeoutInMillis)
Shutdown the ControllerServerThread and its attached connection to reject new incoming connections. |
| 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 Controller controller
| Constructor Detail |
public ControllerShutdownThread(Controller controller,
int level)
controller - the controller to shutdownlevel - Constants.SHUTDOWN_WAIT, Constants.SHUTDOWN_SAFE or
Constants.SHUTDOWN_FORCE| Method Detail |
protected void shutdownJmxAgent()
protected void shutdownDatabases()
protected void shutdownServerConnectionThread(int joinTimeoutInMillis)
throws ShutdownException
joinTimeoutInMillis - timeout in milliseconds to wait for controller
server thread termination. A timeout of 0 means wait forever.
ShutdownException - if an error occursprotected void generateReportIfNeeded()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||