@NotThreadSafe public static class BundleProgressReporter.InMemory extends java.lang.Object implements BundleProgressReporter, BundleProgressReporter.Registrar
Synchronization must be provided between register(org.apache.beam.fn.harness.control.BundleProgressReporter) and BundleProgressReporter methods to ensure that all registered reporters are seen.
BundleProgressReporter.InMemory, BundleProgressReporter.Registrar| Constructor and Description |
|---|
InMemory() |
| Modifier and Type | Method and 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.v1p60p1.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.v1p60p1.com.google.protobuf.ByteString> monitoringData)
Update the monitoring data for a bundle that is currently being processed.
|
public void register(BundleProgressReporter reporter)
BundleProgressReporter.Registrarregister in interface BundleProgressReporter.Registrarpublic void updateIntermediateMonitoringData(java.util.Map<java.lang.String,org.apache.beam.vendor.grpc.v1p60p1.com.google.protobuf.ByteString> monitoringData)
BundleProgressReporterMust be invoked while holding the ProcessBundleHandler.BundleProcessor.getProgressRequestLock().
updateIntermediateMonitoringData in interface BundleProgressReporterpublic void updateFinalMonitoringData(java.util.Map<java.lang.String,org.apache.beam.vendor.grpc.v1p60p1.com.google.protobuf.ByteString> monitoringData)
BundleProgressReporterMust be invoked from the main bundle processing thread and while holding the ProcessBundleHandler.BundleProcessor.getProgressRequestLock().
updateFinalMonitoringData in interface BundleProgressReporterpublic void reset()
BundleProgressReporterMust be invoked from the main bundle processing thread and while holding the ProcessBundleHandler.BundleProcessor.getProgressRequestLock().
reset in interface BundleProgressReporter