Declaring the percentage-based threshold policy (PercentageBasedThresholdPolicy)

This policy provides a batch implementation of the ThresholdPolicy interface.

Before you begin

The percentageBasedThresholdPolicy is applicable only if the ThresholdBatchStep is used. It calculates the percentage of the number of error records processed to the total number 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 percentage-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.

threshold_threshold

Double value (default is 0.1)

The acceptable percentage of errors.

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.PercentageBasedThresholdPolicy"/>
</props>
...    



In this information ...


IBM Redbooks, demos, education, and more

(Index)

Use IBM Suggests to retrieve related content from ibm.com and beyond, identified for your convenience.

This feature requires Internet access.

Task topic Task topic    

Terms of Use | Feedback

Last updatedLast updated: Sep 19, 2011 4:16:02 PM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=matt&product=was-base-dist&topic=tgrid_cgpercent
File name: tgrid_cgpercent.html