org.objectweb.cjdbc.controller.shutdown
Class ControllerShutdownThread
java.lang.Object
org.objectweb.cjdbc.controller.shutdown.ShutdownThread
org.objectweb.cjdbc.controller.shutdown.ControllerShutdownThread
- All Implemented Interfaces:
- java.lang.Runnable
- public class ControllerShutdownThread
- extends ShutdownThread
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
- Version:
- 1.0
- Author:
- Nicolas Modrzyk
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
controller
private Controller controller
ControllerShutdownThread
public ControllerShutdownThread(Controller controller,
int ilevel)
- Prepare the thread for shutting down.
- Parameters:
controller
- the controller to shutdownilevel
- the level Smart,Fast,Immediate
finish
protected void finish()
- Overrides:
finish
in class ShutdownThread
shutdownImmediate
public void shutdownImmediate()
- Description copied from class:
ShutdownThread
- Force immediate shutdown. This method needs recovery at next start up.
- Specified by:
shutdownImmediate
in class ShutdownThread
- See Also:
ShutdownThread.shutdownImmediate()
shutdownSmart
public void shutdownSmart()
throws ShutdownException
- Description copied from class:
ShutdownThread
- Wait for all clients to finish transaction and disconnect. Then disable all
backends for checkpoints.
- Specified by:
shutdownSmart
in class ShutdownThread
- Throws:
ShutdownException
- if fails- See Also:
ShutdownThread.shutdownSmart()
shutdownFast
public void shutdownFast()
throws ShutdownException
- Description copied from class:
ShutdownThread
- Wait for all clients to finish transaction and then force disconnection.
Then disable backends for checkpoint. This shutdown method does not need
recovery.
- Specified by:
shutdownFast
in class ShutdownThread
- Throws:
ShutdownException
- if fails- See Also:
ShutdownThread.shutdownFast()
shutdownJmxAgent
private void shutdownJmxAgent()
throws ShutdownException
- Throws:
ShutdownException
shutdownDatabases
private void shutdownDatabases()
throws ShutdownException
- Throws:
ShutdownException
shutdownServerConnectionThread
private void shutdownServerConnectionThread()
throws ShutdownException
- Throws:
ShutdownException
Copyright © 2002, 2003 - ObjectWeb Consortium - All Rights Reserved.