Xindice API
version 1.1

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


Constructor Summary
DatabaseShutdownHandler()
           
 
Method Summary
 void registerDatabase(Database db)
           
 void removeDatabase(Database db)
           
 void run()
          Cleans up any unclosed databases before the JVM exits.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseShutdownHandler

public DatabaseShutdownHandler()
Method Detail

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

Xindice API
version 1.1

Copyright (c) 1999-2007 The Apache Software Foundation. All Rights Reserved.