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/collection/ServiceCluster.java

    r9798 r9824  
    3434import java.io.File;
    3535import java.util.HashMap;
     36import java.util.Iterator;
    3637
    3738/* ServiceCluster - a groups of services that are related in some way
     
    9192    }
    9293
     94    public void cleanUp() {
     95    Iterator i = this.service_map.values().iterator();
     96    while (i.hasNext()) {
     97        ServiceRack s = (ServiceRack)i.next();
     98        s.cleanUp();
     99    }
     100    }
    93101    public void setClusterName(String name) {
    94102    this.cluster_name = name;   
Note: See TracChangeset for help on using the changeset viewer.