Class BundleProgressReporter.InMemory

    • Constructor Summary

      Constructors 
      Constructor Description
      InMemory()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void register​(BundleProgressReporter reporter)
      Adds the reporter to be reported on.
      void reset()
      Reset the monitoring data after a bundle has finished processing to be re-used for a future bundle.
      void updateFinalMonitoringData​(java.util.Map<java.lang.String,​org.apache.beam.vendor.grpc.v1p69p0.com.google.protobuf.ByteString> monitoringData)
      Update the monitoring data for a bundle that has finished processing.
      void updateIntermediateMonitoringData​(java.util.Map<java.lang.String,​org.apache.beam.vendor.grpc.v1p69p0.com.google.protobuf.ByteString> monitoringData)
      Update the monitoring data for a bundle that is currently being processed.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • InMemory

        public InMemory()
    • Method Detail

      • updateIntermediateMonitoringData

        public void updateIntermediateMonitoringData​(java.util.Map<java.lang.String,​org.apache.beam.vendor.grpc.v1p69p0.com.google.protobuf.ByteString> monitoringData)
        Description copied from interface: BundleProgressReporter
        Update the monitoring data for a bundle that is currently being processed.

        Must be invoked while holding the ProcessBundleHandler.BundleProcessor.getProgressRequestLock().

        Specified by:
        updateIntermediateMonitoringData in interface BundleProgressReporter
      • updateFinalMonitoringData

        public void updateFinalMonitoringData​(java.util.Map<java.lang.String,​org.apache.beam.vendor.grpc.v1p69p0.com.google.protobuf.ByteString> monitoringData)
        Description copied from interface: BundleProgressReporter
        Update the monitoring data for a bundle that has finished processing.

        Must be invoked from the main bundle processing thread and while holding the ProcessBundleHandler.BundleProcessor.getProgressRequestLock().

        Specified by:
        updateFinalMonitoringData in interface BundleProgressReporter
      • reset

        public void reset()
        Description copied from interface: BundleProgressReporter
        Reset the monitoring data after a bundle has finished processing to be re-used for a future bundle.

        Must be invoked from the main bundle processing thread and while holding the ProcessBundleHandler.BundleProcessor.getProgressRequestLock().

        Specified by:
        reset in interface BundleProgressReporter