Revision 7811
Added by ben leinfelder almost 11 years ago
ApplicationController.java | ||
---|---|---|
26 | 26 |
*/ |
27 | 27 |
package edu.ucsb.nceas.metacat.index; |
28 | 28 |
|
29 |
import edu.ucsb.nceas.metacat.common.SolrServerFactory; |
|
30 |
import edu.ucsb.nceas.metacat.common.query.EnabledQueryEngines; |
|
31 |
|
|
32 | 29 |
import java.io.File; |
30 |
import java.io.FileNotFoundException; |
|
33 | 31 |
import java.util.ArrayList; |
34 | 32 |
import java.util.List; |
35 | 33 |
import java.util.Timer; |
36 | 34 |
|
37 |
import javax.servlet.ServletConfig; |
|
38 |
import javax.servlet.ServletException; |
|
39 |
|
|
40 | 35 |
import org.apache.commons.configuration.ConfigurationException; |
41 | 36 |
import org.apache.commons.logging.Log; |
42 | 37 |
import org.apache.commons.logging.LogFactory; |
... | ... | |
46 | 41 |
import org.springframework.context.ApplicationContext; |
47 | 42 |
import org.springframework.context.support.FileSystemXmlApplicationContext; |
48 | 43 |
|
49 |
import com.hazelcast.client.HazelcastClient; |
|
50 | 44 |
import com.ibm.icu.util.Calendar; |
51 | 45 |
|
46 |
import edu.ucsb.nceas.metacat.common.SolrServerFactory; |
|
47 |
import edu.ucsb.nceas.metacat.common.query.EnabledQueryEngines; |
|
48 |
|
|
52 | 49 |
/** |
53 | 50 |
* The start class of the index. |
54 | 51 |
* @author tao |
... | ... | |
228 | 225 |
/** |
229 | 226 |
* Start the system metadata listener. Prior to call this method, we should call |
230 | 227 |
* initialize method first. |
228 |
* @throws ServiceFailure |
|
229 |
* @throws FileNotFoundException |
|
231 | 230 |
*/ |
232 |
public void startSysmetaListener() { |
|
231 |
public void startSysmetaListener() throws FileNotFoundException, ServiceFailure {
|
|
233 | 232 |
if(sysmetaListeners != null) { |
234 | 233 |
//only expects one listener. |
235 | 234 |
for(SystemMetadataEventListener listener : sysmetaListeners) { |
Also available in: Unified diff
consolidate SystemMetadata map retrieval in preparation for using a different structure for objects to index.