Changeset 25808


Ignore:
Timestamp:
2012-06-25T14:41:26+12:00 (9 years ago)
Author:
ak19
Message:

Added cleanUp() method to make this class more similar to GS2SolrSearch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs3-extensions/solr/trunk/src/src/java/org/greenstone/gsdl3/service/SolrSearch.java

    r24641 r25808  
    4949
    5050    if (solr_cores == null) {
    51         // Share one CoreContainer across all sties/collections
     51        // Share one CoreContainer across all sites/collections
    5252        try {
    5353       
     
    6767    }
    6868
     69    // Overriding the cleanUp() method here, so as to parallel the structure of GS2SolrSearch
     70    // which also calls shutdown() on its CoreContainer object in GS2SolrSearch.cleanUp().
     71    // However, this class has not yet been tested, so it's not certain that this method is
     72    // required here.
     73    public void cleanUp() {
     74    super.cleanUp();
     75    solr_cores.shutdown();
     76    }
    6977
    7078    public boolean configure(Element info, Element extra_info) {
Note: See TracChangeset for help on using the changeset viewer.