org/sonews/daemon/AbstractDaemon.java
changeset 9 70028c8a63fd
parent 1 6fceb66e1ad7
child 15 f2293e8566f5
     1.1 --- a/org/sonews/daemon/AbstractDaemon.java	Fri Jun 26 16:48:50 2009 +0200
     1.2 +++ b/org/sonews/daemon/AbstractDaemon.java	Wed Aug 12 16:43:30 2009 +0200
     1.3 @@ -19,7 +19,7 @@
     1.4  package org.sonews.daemon;
     1.5  
     1.6  import java.sql.SQLException;
     1.7 -import org.sonews.daemon.storage.Database;
     1.8 +import org.sonews.storage.StorageManager;
     1.9  import org.sonews.util.Log;
    1.10  
    1.11  /**
    1.12 @@ -56,21 +56,17 @@
    1.13    }
    1.14    
    1.15    /**
    1.16 -   * Marks this thread to exit soon. Closes the associated Database connection
    1.17 +   * Marks this thread to exit soon. Closes the associated JDBCDatabase connection
    1.18     * if available.
    1.19     * @throws java.sql.SQLException
    1.20     */
    1.21 -  void shutdownNow()
    1.22 +  public void shutdownNow()
    1.23      throws SQLException
    1.24    {
    1.25      synchronized(this)
    1.26      {
    1.27        this.isRunning = false;
    1.28 -      Database db = Database.getInstance(false);
    1.29 -      if(db != null)
    1.30 -      {
    1.31 -        db.shutdown();
    1.32 -      }
    1.33 +      StorageManager.disableProvider();
    1.34      }
    1.35    }
    1.36