Class StandardProcessSession.Checkpoint

java.lang.Object
org.apache.nifi.controller.repository.StandardProcessSession.Checkpoint
Enclosing class:
StandardProcessSession

protected static class StandardProcessSession.Checkpoint extends Object
  • Field Details

    • processingTime

      private long processingTime
    • generatedProvenanceEvents

      private Map<FlowFile,List<ProvenanceEventRecord>> generatedProvenanceEvents
    • forkEventBuilders

      private Map<FlowFile,ProvenanceEventBuilder> forkEventBuilders
    • autoTerminatedEvents

      private List<ProvenanceEventRecord> autoTerminatedEvents
    • reportedEvents

      private Set<ProvenanceEventRecord> reportedEvents
    • records

      private Map<Long,StandardRepositoryRecord> records
    • connectionCounts

      private Map<String,StandardFlowFileEvent> connectionCounts
    • countersOnCommit

      private Map<String,Long> countersOnCommit
    • immediateCounters

      private Map<String,Long> immediateCounters
    • deleteOnCommit

      private Map<FlowFile,Path> deleteOnCommit
    • removedFlowFiles

      private Set<String> removedFlowFiles
    • createdFlowFiles

      private Set<String> 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

      private StateMap localState
    • clusterState

      private StateMap 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

      private StandardRepositoryRecord getRecord(FlowFile flowFile)
    • getFlowFilesIn

      public int getFlowFilesIn()
    • getFlowFilesOut

      public int getFlowFilesOut()
    • getFlowFilesRemoved

      public int getFlowFilesRemoved()
    • getBytesIn

      public long getBytesIn()
    • getBytesOut

      public long getBytesOut()
    • getBytesRemoved

      public long getBytesRemoved()