WebSphere Extended Deployment Compute Grid, Version 6.1
             Operating Systems: AIX, HP-UX, Linux, Solaris, Windows, z/OS


PercentageBasedThresholdPolicy

This policy provides a Compute Grid 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.

Table 1. Optional properties
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 ThresholdPolicy 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>
...    



Related concepts
Batch data stream framework and patterns
Related tasks
Developing a simple batch application
Error Tolerant step
RecordBasedThresholdPolicy
Task topic    

Terms of Use | Feedback

Last updated: Oct 30, 2009 6:22:31 PM EDT
http://publib.boulder.ibm.com/infocenter/wxdinfo/v6r1/index.jsp?topic=/com.ibm.websphere.gridmgr.doc/info/scheduler/tcgpercent.html