Revision 7684
Added by Jing Tao over 11 years ago
metacat-index/src/main/java/edu/ucsb/nceas/metacat/index/SystemMetadataEventListener.java | ||
---|---|---|
208 | 208 |
} |
209 | 209 |
|
210 | 210 |
public void entryAdded(EntryEvent<Identifier, SystemMetadata> entryEvent) { |
211 |
System.out.println("===================================calling entryAdded method "); |
|
211 |
//System.out.println("===================================calling entryAdded method "); |
|
212 |
log.info("===================================calling entryAdded method "); |
|
212 | 213 |
// use the same implementation for insert/update for now |
213 | 214 |
this.entryUpdated(entryEvent); |
214 | 215 |
|
... | ... | |
233 | 234 |
} |
234 | 235 |
|
235 | 236 |
public void entryUpdated(EntryEvent<Identifier, SystemMetadata> entryEvent) { |
236 |
System.out.println("===================================calling entryUpdated method "); |
|
237 |
//System.out.println("===================================calling entryUpdated method "); |
|
238 |
log.info("===================================calling entryUpdated method "); |
|
237 | 239 |
// add to the index |
238 | 240 |
Identifier pid = entryEvent.getKey(); |
239 |
System.out.println("===================================update the document "+pid.getValue()); |
|
241 |
//System.out.println("===================================update the document "+pid.getValue()); |
|
242 |
log.info("===================================update the document "+pid.getValue()); |
|
240 | 243 |
SystemMetadata systemMetadata = entryEvent.getValue(); |
241 | 244 |
Identifier obsoletes = systemMetadata.getObsoletes(); |
242 | 245 |
List<String> obsoletesChain = null; |
Also available in: Unified diff
Use the log info to replace the print.