org.apache.xindice.core
Class DatabaseShutdownHandler
java.lang.Object
org.apache.xindice.core.DatabaseShutdownHandler
- All Implemented Interfaces:
- Runnable
- public class DatabaseShutdownHandler
- extends Object
- implements Runnable
Going to handle the JVM Shutdown hook and insuring clean shutdown
of all registered Database instances.
Todd Byrne
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DatabaseShutdownHandler
public DatabaseShutdownHandler()
registerDatabase
public void registerDatabase(Database db)
- Parameters:
db
- database to register
removeDatabase
public void removeDatabase(Database db)
- Parameters:
db
- removed the database from the hashtable
run
public void run()
- Cleans up any unclosed databases before the JVM exits.
- Specified by:
run
in interface Runnable
Copyright (c) 1999-2007 The Apache Software Foundation. All Rights Reserved.