Project

General

Profile

Revision 2427

Changed default maxHarvests value to 0. Added logic to ignore maxHarvests value when it is set to 0 or a negative number. This allows Harvester to run indefinitely without shutting down after reaching a maximum number of harvests. The previous default value of 30 would cause Harvester to terminate after 30 harvests.

View differences:

lib/metacat.properties
157 157

  
158 158
logPeriod=90
159 159

  
160
maxHarvests=30
160
maxHarvests=0
161 161

  
162 162
period=24
163 163

  
docs/user/harvester.html
201 201
      <td>The maximum number of harvests that Harvester should execute before
202 202
          shutting down. When the Harvester program is executed, it will
203 203
          continue running until it has executed <code>maxHarvests</code>
204
          number of harvests and then the program will terminate.</td>
205
      <td>Default: 30</td>
204
          number of harvests and then the program will terminate. If
205
          the value of <code>maxHarvests</code> is set to 0 or a negative
206
          number, it will be ignored and Harvester will execute indefinitely.
207
          </td>
208
      <td>Default: 0</td>
206 209
    </tr>
207 210
    <tr>
208 211
      <td>period</td>
209 212
      <td>The number of hours between harvests. Harvester will run a new
210 213
          harvest every <code>period</code> number of hours, until the 
211
          <code>maxHarvests</code> number of harvests have been run.</td>
214
          <code>maxHarvests</code> number of harvests have been run, or
215
          indefinitely if <code>maxHarvests</code> is set to a value of
216
          0 or a negative number.
212 217
      <td>Default: 24</td>
213 218
    </tr>
214 219
    <tr>
......
277 282
  <a href=../../lib/metacat.properties>metacat.properties</a>
278 283
  file). The application will continue running a new harvest every
279 284
  <code><b>period</b></code> number of hours until a <code><b>maxHarvests</b></code>
280
  number of harvests have been completed, or until you interrupt the process by
281
  hitting CTRL/C in the command window.
285
  number of harvests have been completed (if <code><b>maxHarvests</b></code> is set 
286
  to a value greater than 0), or until you interrupt the process by hitting CTRL/C 
287
  in the command window.
282 288
  </p>
283 289
  </li>
284 290
  <li> (B) Running Harvester as a Servlet
......
337 343
  <a href=../../lib/metacat.properties>metacat.properties</a>
338 344
  file). The servlet will continue running a new harvest every
339 345
  <code><b>period</b></code> number of hours until a <code><b>maxHarvests</b></code>
340
  number of harvests have been completed, or until Tomcat shuts down.
346
  number of harvests have been completed (if <code><b>maxHarvests</b></code> is set
347
  to a value greater than 0), or until Tomcat shuts down.
341 348
  </p>
342 349
  </li>
343 350
   <h5><a name="Reviewing Harvester">

Also available in: Unified diff