com.ibm.websphere.batch.devframework.thresholdpolicies

Interface ThresholdPolicy


  1. public interface ThresholdPolicy

Field Summary

Modifier and Type Field and Description
  1. static
  2. int
NO_THRESHOLD_VIOLATION
Constant indicating threshold violation has not occured
  1. static
  2. int
THRESHOLD_VIOLATION
Constant indicating threshold violation has occured.

Method Summary

Modifier and Type Method and Description
  1. void
destroy()
Called during step shutdown allows any cleanup to occur
  1. void
initialize(java.util.Properties props)
This method is invoked during StepSetup allows any configuration properties passed via xJCL to be read
  1. int
invalidRecordEncountered(int currentRecordCount)
This method is invoked by the ThresholdBatchStep each time the BatchRecordProcessor returns a null value.

Field Detail

NO_THRESHOLD_VIOLATION

  1. static final int NO_THRESHOLD_VIOLATION
Constant indicating threshold violation has not occured
See Also:

THRESHOLD_VIOLATION

  1. static final int THRESHOLD_VIOLATION
Constant indicating threshold violation has occured.
See Also:

Method Detail

initialize

  1. void initialize(java.util.Properties props)
This method is invoked during StepSetup allows any configuration properties passed via xJCL to be read
Parameters:
props -

invalidRecordEncountered

  1. int invalidRecordEncountered(int currentRecordCount)
This method is invoked by the ThresholdBatchStep each time the BatchRecordProcessor returns a null value. This method allows the user to calculate how many errors have been encountered till now and whether they exceed the threshold.
Returns:

destroy

  1. void destroy()
Called during step shutdown allows any cleanup to occur