Project

General

Profile

« Previous | Next » 

Revision 7560

start the SystemMetadataListener for each solr index configured (expecting only one).

View differences:

metacat-index/src/main/java/edu/ucsb/nceas/metacat/index/ApplicationController.java
63 63
        init();
64 64
    }
65 65
    
66
    /*
66
    /**
67 67
     * Init the list of the SolrIndex objects from the configuration file.
68
     * Start listening to the shared Hazelcast structures
68 69
     */
69 70
    private void init() {
70 71
        context = getContext();
71 72
        solrIndexes = (List<SolrIndex>) context.getBean(SOLRINDEXES);
72 73
        
74
        // start the SystemMetadata listener[s] (only expect there to be one)
75
        for (SolrIndex solrIndex: solrIndexes) {
76
        	SystemMetadataEventListener smel = new SystemMetadataEventListener();
77
        	smel.setSolrIndex(solrIndex);
78
        	smel.start();
79
        }
80
        
73 81
    }
74 82
    
75 83
    /*

Also available in: Unified diff