Class StandardProcessSession.Checkpoint
java.lang.Object
org.apache.nifi.controller.repository.StandardProcessSession.Checkpoint
- Enclosing class:
StandardProcessSession
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List<ProvenanceEventRecord> private longprivate longprivate longprivate longprivate StateMapprivate Map<String, StandardFlowFileEvent> private longprivate longprivate intprivate intprivate intprivate intprivate Map<FlowFile, ProvenanceEventBuilder> private Map<FlowFile, List<ProvenanceEventRecord>> private booleanprivate StateMapprivate longprivate Map<Long, StandardRepositoryRecord> private longprivate intprivate Set<ProvenanceEventRecord> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcheckpoint(StandardProcessSession session, List<ProvenanceEventRecord> autoTerminatedEvents, boolean copy) private voidcopyCheckpoint(StandardProcessSession session, List<ProvenanceEventRecord> autoTerminatedEvents) Checkpoints the Process Session by copying all information from the session's collections into this Checkpoint's collections.private voiddirectCheckpoint(StandardProcessSession session, List<ProvenanceEventRecord> autoTerminatedEvents) Checkpoints the Process Session by adding references to the existing collections within the Process Session.longlonglongintintintprivate StandardRepositoryRecordprivate voidprivate <K,V> void mergeMaps(Map<K, V> destination, Map<K, V> toMerge, BiFunction<? super V, ? super V, ? extends V> merger) private <K,V> void mergeMapsWithMutableValue(Map<K, V> destination, Map<K, V> toMerge, BiConsumer<? super V, ? super V> merger)
-
Field Details
-
processingTime
private long processingTime -
generatedProvenanceEvents
-
forkEventBuilders
-
autoTerminatedEvents
-
reportedEvents
-
records
-
connectionCounts
-
countersOnCommit
-
immediateCounters
-
deleteOnCommit
-
removedFlowFiles
-
createdFlowFiles
-
removedCount
private int removedCount -
removedBytes
private long removedBytes -
bytesRead
private long bytesRead -
bytesWritten
private long bytesWritten -
flowFilesIn
private int flowFilesIn -
flowFilesOut
private int flowFilesOut -
contentSizeIn
private long contentSizeIn -
contentSizeOut
private long contentSizeOut -
flowFilesReceived
private int flowFilesReceived -
flowFilesSent
private int flowFilesSent -
bytesReceived
private long bytesReceived -
bytesSent
private long bytesSent -
initialized
private boolean initialized -
localState
-
clusterState
-
-
Constructor Details
-
Checkpoint
protected Checkpoint()
-
-
Method Details
-
initializeForCopy
private void initializeForCopy() -
checkpoint
private void checkpoint(StandardProcessSession session, List<ProvenanceEventRecord> autoTerminatedEvents, boolean copy) -
directCheckpoint
private void directCheckpoint(StandardProcessSession session, List<ProvenanceEventRecord> autoTerminatedEvents) Checkpoints the Process Session by adding references to the existing collections within the Process Session. Any modifications made to the Checkpoint's Collections or the Process Session's collections will be reflected by the other. I.e., this is a copy-by-reference. -
copyCheckpoint
private void copyCheckpoint(StandardProcessSession session, List<ProvenanceEventRecord> autoTerminatedEvents) Checkpoints the Process Session by copying all information from the session's collections into this Checkpoint's collections. This is necessary if multiple Process Sessions are to be batched together. I.e., this is a copy-by-value -
mergeMaps
private <K,V> void mergeMaps(Map<K, V> destination, Map<K, V> toMerge, BiFunction<? super V, ? super V, ? extends V> merger) -
mergeMapsWithMutableValue
private <K,V> void mergeMapsWithMutableValue(Map<K, V> destination, Map<K, V> toMerge, BiConsumer<? super V, ? super V> merger) -
getRecord
-
getFlowFilesIn
public int getFlowFilesIn() -
getFlowFilesOut
public int getFlowFilesOut() -
getFlowFilesRemoved
public int getFlowFilesRemoved() -
getBytesIn
public long getBytesIn() -
getBytesOut
public long getBytesOut() -
getBytesRemoved
public long getBytesRemoved()
-