Revision 8310
Added by Jing Tao about 11 years ago
metacat-index/src/main/java/edu/ucsb/nceas/metacat/index/event/HazelcastIndexEventLog.java | ||
---|---|---|
37 | 37 |
import edu.ucsb.nceas.metacat.common.index.event.IndexEvent; |
38 | 38 |
import edu.ucsb.nceas.metacat.index.DistributedMapsFactory; |
39 | 39 |
|
40 |
|
|
40 | 41 |
/** |
41 | 42 |
* @author leinfelder |
42 | 43 |
* |
43 | 44 |
*/ |
44 | 45 |
public class HazelcastIndexEventLog implements IndexEventLog { |
45 | 46 |
|
46 |
private static final String LASTPROCESSEDDATEFILENAME = "solr-last-proccessed-date"; |
|
47 |
|
|
47 | 48 |
private File lastProcessedDateFile = null; |
48 | 49 |
private SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ"); |
49 | 50 |
|
... | ... | |
57 | 58 |
path = System.getProperty("user.home"); |
58 | 59 |
} |
59 | 60 |
File pathDir = new File(path); |
60 |
lastProcessedDateFile = new File(pathDir, LASTPROCESSEDDATEFILENAME); |
|
61 |
lastProcessedDateFile = new File(pathDir, edu.ucsb.nceas.metacat.common.Settings.LASTPROCESSEDDATEFILENAME);
|
|
61 | 62 |
if(!lastProcessedDateFile.exists()) { |
62 | 63 |
lastProcessedDateFile.createNewFile(); |
63 | 64 |
} |
Also available in: Unified diff
Use the setting from the metacat-common component.