com.ibm.websphere.batch.devframework.thresholdpolicies
Interface ThresholdPolicy
-
public interface ThresholdPolicy
-
-
Field Summary
Fields Modifier and Type Field and Description static int
NO_THRESHOLD_VIOLATION
Constant indicating threshold violation has not occuredstatic int
THRESHOLD_VIOLATION
Constant indicating threshold violation has occured.
-
Method Summary
Methods Modifier and Type Method and Description void
destroy()
Called during step shutdown allows any cleanup to occurvoid
initialize(java.util.Properties props)
This method is invoked during StepSetup allows any configuration properties passed via xJCL to be readint
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:
- Constant Field Values
-
THRESHOLD_VIOLATION
static final int THRESHOLD_VIOLATION
Constant indicating threshold violation has occured.- See Also:
- Constant Field Values
-
-
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.- Parameters:
currentRecordCount:
- The count of the current record being processed- Returns:
-
destroy
void destroy()
Called during step shutdown allows any cleanup to occur
-
-