Revision 7691
Added by Jing Tao almost 11 years ago
ApplicationController.java | ||
---|---|---|
47 | 47 |
private static short FIRST = 0; |
48 | 48 |
|
49 | 49 |
private List<SolrIndex> solrIndexes = null; |
50 |
private List<SystemMetadataEventListener> sysmetaListeners = new ArrayList<SystemMetadataEventListener>(); |
|
50 |
//private List<SystemMetadataEventListener> sysmetaListeners = new ArrayList<SystemMetadataEventListener>();
|
|
51 | 51 |
private static ApplicationContext context = null; |
52 | 52 |
private String springConfigFile = "src/main/resources/index-processor-context.xml"; |
53 | 53 |
Log log = LogFactory.getLog(ApplicationController.class); |
... | ... | |
96 | 96 |
SystemMetadataEventListener smel = new SystemMetadataEventListener(); |
97 | 97 |
smel.setSolrIndex(solrIndex); |
98 | 98 |
smel.start(); |
99 |
sysmetaListeners.add(smel); |
|
99 |
//sysmetaListeners.add(smel);
|
|
100 | 100 |
} |
101 | 101 |
|
102 | 102 |
} |
... | ... | |
133 | 133 |
*/ |
134 | 134 |
public void startIndex() { |
135 | 135 |
SolrIndex index = solrIndexes.get(FIRST); |
136 |
SystemMetadataEventListener listener = sysmetaListeners.get(FIRST); |
|
137 |
IndexGenerator generator = new IndexGenerator(index, listener);
|
|
136 |
//SystemMetadataEventListener listener = sysmetaListeners.get(FIRST);
|
|
137 |
IndexGenerator generator = new IndexGenerator(index); |
|
138 | 138 |
Thread indexThread = new Thread(generator); |
139 | 139 |
indexThread.start(); |
140 | 140 |
} |
Also available in: Unified diff
Add code to wait the readiness of the hazelcast service.