Enabling the text search scheduled task

You enable the text search scheduled task using the WSRR scheduler framework.

About this task

To enable the text search scheduled task, perform the following actions:

Procedure

  1. Create a scheduler configuration file for the text search scheduled task.
  2. Load the scheduler configuration file into WSRR.

Example

An example of a scheduler configuration file for the text search scheduled task is given here. You can change the value of the following elements:
  • <enabled>: controls whether the text search scheduled task is enabled. The value of this element must be true or false.
  • <interval>: the interval at which the scheduled task is executed. The time unit depends on the value of the <intervalGranularity> element.
  • <startTimeOffset>: the time delay after which the scheduled task begins processing. The time unit depends on the value of the <intervalGranularity> element.
  • <intervalGranularity>: the time unit associated with the <interval> and <startTimeOffset> elements.
You must specify the remaining elements as shown in the example.
<?xml version="1.0" encoding="UTF-8"?>
<!-- begin_generated_IBM_copyright_prolog -->

<!-- Licensed Materials - Property of IBM -->
<!-- 5724-N72 5655-R41 -->
<!-- (c) Copyright IBM Corp. 2008, 2009 All Rights Reserved -->
<!-- US Government Users Restricted Rights - Use, duplication or -->
<!-- disclosure restricted by GSA ADP Schedule Contract with -->
<!-- IBM Corp. -->

<!-- end_generated_IBM_copyright_prolog -->

<scheduler-configuration xmlns="http://www.ibm.com/xmlns/prod/serviceregistry/6/1/SchedulerProperties">
  <scheduler-task name="TextSearch">
    <type>Timed</type>
       <interval>120</interval>
       <class>com.ibm.sr.textsearch.impl.TextSearchTask</class>
       <enabled>false</enabled>				
       <startTimeOffset>1</startTimeOffset>
       <intervalGranularity>hours</intervalGranularity>
       <startTimeOffsetGranularity>minutes</startTimeOffsetGranularity>
       <transactionality>Single</transactionality>
  </scheduler-task>
</scheduler-configuration>

What to do next

For full details on the configuration file structure, and the ways in which you can load it into WSRR, see the Related link.