private class EnforceOrder.OrderingContext extends Object
Modifier and Type | Field and Description |
---|---|
private FlowFile |
flowFile |
private Map<String,List<FlowFile>> |
flowFileGroups |
private Function<FlowFile,Integer> |
getOrder |
private String |
groupId |
private PropertyValue |
groupIdentifierProperty |
private Map<String,String> |
groupStates |
private PropertyValue |
initOrderProperty |
private ComponentLog |
logger |
private PropertyValue |
maxOrderProperty |
private long |
now |
private Integer |
order |
private String |
orderAttribute |
private ProcessContext |
processContext |
private ProcessSession |
processSession |
private Long |
waitTimeoutMillis |
Modifier | Constructor and Description |
---|---|
private |
OrderingContext(ProcessContext processContext,
ProcessSession processSession) |
Modifier and Type | Method and Description |
---|---|
private void |
cleanupInactiveStates() |
private boolean |
computeGroupId() |
private boolean |
computeInitialOrder() |
private boolean |
computeMaxOrder() |
private boolean |
computeOrder() |
private void |
markFlowFileValid() |
private void |
setFlowFile(FlowFile flowFile) |
private void |
transferFlowFiles() |
private void |
transferResult(FlowFile flowFile,
Relationship result,
String detail,
Integer expectedOrder) |
private void |
transferToFailure(FlowFile flowFile,
String message) |
private void |
transferToFailure(FlowFile flowFile,
String message,
Throwable cause) |
private final ComponentLog logger
private final ProcessSession processSession
private final ProcessContext processContext
private final String orderAttribute
private final Long waitTimeoutMillis
private final long now
private final PropertyValue groupIdentifierProperty
private final PropertyValue initOrderProperty
private final PropertyValue maxOrderProperty
private FlowFile flowFile
private String groupId
private Integer order
private OrderingContext(ProcessContext processContext, ProcessSession processSession)
private void setFlowFile(FlowFile flowFile)
private boolean computeGroupId()
private boolean computeOrder()
private boolean computeMaxOrder()
private boolean computeInitialOrder()
private void markFlowFileValid()
private void transferFlowFiles()
private void transferResult(FlowFile flowFile, Relationship result, String detail, Integer expectedOrder)
private void transferToFailure(FlowFile flowFile, String message, Throwable cause)
private void cleanupInactiveStates()
Copyright © 2020 Apache NiFi Project. All rights reserved.