Class AbstractPutEventProcessor.FlowFileMessageBatch
java.lang.Object
org.apache.nifi.processor.util.put.AbstractPutEventProcessor.FlowFileMessageBatch
- Enclosing class:
AbstractPutEventProcessor<T>
A wrapper to hold the ranges of a FlowFile that were successful and ranges that failed, and then
transfer those ranges appropriately.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate longprivate final List<AbstractPutEventProcessor.Range> private final FlowFileprivate Exceptionprivate longprivate final ProcessSessionprivate final longprivate final List<AbstractPutEventProcessor.Range> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFailedRange(long start, long end, Exception e) voidaddSuccessfulRange(long start, long end) voidvoidprivate booleanvoidsetNumMessages(long msgCount) private voidtransferRanges(List<AbstractPutEventProcessor.Range> ranges, Relationship relationship)
-
Field Details
-
session
-
flowFile
-
startTime
private final long startTime -
successfulRanges
-
failedRanges
-
lastFailureReason
-
numMessages
private long numMessages -
completeTime
private long completeTime -
canceled
private boolean canceled
-
-
Constructor Details
-
FlowFileMessageBatch
-
-
Method Details
-
cancelOrComplete
public void cancelOrComplete() -
addSuccessfulRange
public void addSuccessfulRange(long start, long end) -
addFailedRange
-
isComplete
private boolean isComplete() -
setNumMessages
public void setNumMessages(long msgCount) -
transferRanges
private void transferRanges(List<AbstractPutEventProcessor.Range> ranges, Relationship relationship) -
completeSession
public void completeSession()
-