Ignore:
Timestamp:
2005-05-05T15:55:27+12:00 (19 years ago)
Author:
kjdon
Message:

when a collection (using gdbm) is opened by tomcat, windows holds a lock on the gdbm file, so you can't rebuild it. modified ModuleInterface to have a cleanUp method, so all modules need to implement this. for mg/mgpp and gdbm modules, they now unload the index data or close the connection to the database. so cleanUp should be called whenever you deactivate a module

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ant-install-branch/gsdl3/src/java/org/greenstone/gsdl3/core/ModuleInterface.java

    r3502 r9824  
    5252   */
    5353    abstract public Element process(Element xml_in);
     54
     55    /**
     56     * Do any clean up necessary for deactivating the module, eg
     57     * close any open file handles (gdbm in particular) or windows
     58     * holds locks on them.
     59     */
     60    abstract public void cleanUp();
    5461}   
    5562                                                                           
Note: See TracChangeset for help on using the changeset viewer.