Revision 7866
Added by Jing Tao over 11 years ago
metacat-index/src/main/java/edu/ucsb/nceas/metacat/index/ApplicationController.java | ||
---|---|---|
217 | 217 |
//Thread indexThread = new Thread(generator); |
218 | 218 |
//indexThread.start(); |
219 | 219 |
Timer indexTimer = new Timer(); |
220 |
indexTimer.scheduleAtFixedRate(generator, Calendar.getInstance().getTime(), period); |
|
220 |
//indexTimer.scheduleAtFixedRate(generator, Calendar.getInstance().getTime(), period); |
|
221 |
indexTimer.schedule(generator, Calendar.getInstance().getTime(), period); |
|
221 | 222 |
} |
222 | 223 |
|
223 | 224 |
} |
Also available in: Unified diff
Use schedule method to start the index.