Declaring the record based threshold policy (RecordBasedThresholdPolicy)

The RecordBasedThresholdPolicy policy provides a batch implementation of the ThresholdPolicy interface.

Before you begin

The record based threshold policy of RecordBasedThresholdPolicy is applicable only if the threshold batch step of ThresholdBatchStep is used. It counts the number of error records processed. If the result is greater than the threshold, it forces the job to go into restartable state.

About this task

Optionally use the following properties when you declare the record based threshold policy.

Table 1. Optional properties. The table includes the property name, property value, and property description.
Property Value Description
debug true or false (default is false) Enable tracing and debugging on the step
minimum_threshold_sample_size Integer value (default is 20) The minimum number of records to process before checking for threshold breach.
error_threshold Double value (default is 100) The number of error records.

Procedure

Declare the threshold policy to use in the xJCL as a property of the step as follows:
...
<props>		        
	<prop name="threshold_policy"
       value="com.ibm.websphere.batch.devframework.thresholdpolicies.RecordBasedThresholdPolicy"/>
</props>
...    

Ícone que indica o tipo de tópico Tópico de Tarefa



Ícone de registro de data e hora Última atualização: July 9, 2016 7:54
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=tgrid_cgrecord
Nome do arquivo: tgrid_cgrecord.html