Project

General

Profile

« Previous | Next » 

Revision 3332

Added by Jing Tao almost 17 years ago

Add a delay time for initial indexing

View differences:

src/edu/ucsb/nceas/metacat/MetaCatServlet.java
191 191
            // start the IndexingThread if indexingTimerTaskTime more than 0. 
192 192
            // It will index all the documents not yet indexed in the database             
193 193
            int indexingTimerTaskTime = Integer.parseInt(MetaCatUtil.getOption("indexingTimerTaskTime"));
194
            int delayTime = Integer.parseInt(MetaCatUtil.getOption("indexingInitialDelay"));
195
           
194 196
            if(indexingTimerTaskTime > 0){
195 197
            	timer = new Timer();
196
            	timer.schedule(new IndexingTimerTask(), 0, indexingTimerTaskTime);
198
            	timer.schedule(new IndexingTimerTask(), delayTime, indexingTimerTaskTime);
197 199
            }
198 200
            
199 201
            // read the config files: 

Also available in: Unified diff