com.ibm.websphere.batch.devframework.thresholdpolicies
Interface ThresholdPolicy
- public interface ThresholdPolicy
Field Summary
Modifier and Type | Field and Description |
---|---|
|
NO_THRESHOLD_VIOLATION
Constant indicating threshold violation has not occured
|
|
THRESHOLD_VIOLATION
Constant indicating threshold violation has occured.
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
destroy()
Called during step shutdown allows any cleanup to occur
|
|
initialize(java.util.Properties props)
This method is invoked during StepSetup allows any configuration
properties passed via xJCL to be read
|
|
invalidRecordEncountered(int currentRecordCount)
This method is invoked by the ThresholdBatchStep each time the BatchRecordProcessor
returns a null value.
|
Field Detail
NO_THRESHOLD_VIOLATION
- static final int NO_THRESHOLD_VIOLATION
Constant indicating threshold violation has not occured
See Also:
THRESHOLD_VIOLATION
- static final int THRESHOLD_VIOLATION
Constant indicating threshold violation has occured.
See Also:
Method Detail
initialize
- 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
- 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
- void destroy()
Called during step shutdown allows any cleanup to occur