Class ExecutionStateSampler.ExecutionStateTracker

    • Method Detail

      • getMetricsContainerRegistry

        public org.apache.beam.runners.core.metrics.MetricsContainerStepMap getMetricsContainerRegistry()
        Returns the MetricsContainerStepMap that is managed by this ExecutionStateSampler.ExecutionStateTracker. This metrics container registry stores all the user counters associated for the current bundle execution.
      • getMetricsContainer

        public org.apache.beam.sdk.metrics.MetricsContainer getMetricsContainer()
        Returns a MetricsContainer that delegates based upon the current execution state to the appropriate metrics container that is bound to the current ExecutionStateSampler.ExecutionState or to the unbound MetricsContainer if no execution state is currently running.
      • getCurrentThreadsPTransformId

        public @Nullable java.lang.String getCurrentThreadsPTransformId()
        Returns the ptransform id of the currently executing thread.
      • start

        public void start​(java.lang.String processBundleId)
        Starts tracking execution states for specified processBundleId.

        Only invoked by the bundle processing thread.

      • 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