public interface BatchStepAdapter extends BatchStep
BatchStep related functionality that we don't want exposed as part of the API| Modifier and Type | Method and Description |
|---|---|
boolean |
finishIfCompleted(BatchJobInstanceAdapter jobInstance,
BatchTransactionContext ctx)
If the step has processed all the records for the given
BatchJobInstanceAdapter, then it fires a
BatchNotification.STEP_JOB_END notification and flushes the
step's commit (if any) |
BatchStepAggregator |
getBatchStepAggregator()
If this step has an aggregator block, then this method returns the underlying
BatchStepAggregator |
ExceptionHistory |
getExceptionHistory(BatchJobInstanceAdapter jobInstance)
Returns the
ExceptionHistory associated to the given
BatchJobInstanceAdapter |
org.mule.runtime.api.component.location.ComponentLocation |
getLocation() |
BatchStep |
getNextStep()
Returns the
BatchStep that follows right after this one |
boolean |
isLast()
Whether this step is the last in its
BatchJob or not |
Record |
onRecord(Record record,
BatchTransactionContext ctx)
Process the given
Record for the given BatchJobInstanceAdapter |
void |
releaseResources(BatchJobInstanceAdapter jobInstance)
Releases any resources that the step has allocated for the given jobInstance, such as
ExceptionHistory, AggregatorRecordBuffer, etc. |
Record onRecord(Record record, BatchTransactionContext ctx) throws org.mule.runtime.api.exception.MuleException
Record for the given BatchJobInstanceAdapterrecord - a Recordctx - the BatchTransactionContext in wich the
record is to be executedRecordorg.mule.runtime.api.exception.MuleExceptionboolean finishIfCompleted(BatchJobInstanceAdapter jobInstance, BatchTransactionContext ctx)
BatchJobInstanceAdapter, then it fires a
BatchNotification.STEP_JOB_END notification and flushes the
step's commit (if any)jobInstance - a BatchJobInstanceAdapterctx - the tx context that is being used for this work run.true if all records were processed. false otherwisevoid releaseResources(BatchJobInstanceAdapter jobInstance)
ExceptionHistory, AggregatorRecordBuffer, etc.jobInstance - a not null BatchJobInstanceAdapterExceptionHistory getExceptionHistory(BatchJobInstanceAdapter jobInstance)
ExceptionHistory associated to the given
BatchJobInstanceAdapterExceptionHistory or nullBatchStepAggregator getBatchStepAggregator()
BatchStepAggregatorBatchStepAggregator or nullboolean isLast()
BatchJob or notBatchStep getNextStep()
BatchStep that follows right after this oneBatchStep or null if this is the last oneorg.mule.runtime.api.component.location.ComponentLocation getLocation()
null if this object was generated
programmatically and not from a configuration element.Copyright © 2006–2022 MuleSoft, Inc.. All rights reserved.