public interface BundleProgressReporter
Each method is guaranteed to be invoked exclusively. The call flow for a single bundle is
always: updateIntermediateMonitoringData(java.util.Map<java.lang.String, org.apache.beam.vendor.grpc.v1p60p1.com.google.protobuf.ByteString>)* -> updateFinalMonitoringData(java.util.Map<java.lang.String, org.apache.beam.vendor.grpc.v1p60p1.com.google.protobuf.ByteString>) ->
reset(). After reset(), the progress reporter will be used for another thread.
| Modifier and Type | Interface and Description |
|---|---|
static class |
BundleProgressReporter.InMemory
An in-memory bundle progress reporter and registrar.
|
static interface |
BundleProgressReporter.Registrar
Maintains a set of
BundleProgressReporters. |
| Modifier and Type | Method and Description |
|---|---|
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.
|
void updateIntermediateMonitoringData(java.util.Map<java.lang.String,org.apache.beam.vendor.grpc.v1p60p1.com.google.protobuf.ByteString> monitoringData)
Must be invoked while holding the ProcessBundleHandler.BundleProcessor.getProgressRequestLock().
void updateFinalMonitoringData(java.util.Map<java.lang.String,org.apache.beam.vendor.grpc.v1p60p1.com.google.protobuf.ByteString> monitoringData)
Must be invoked from the main bundle processing thread and while holding the ProcessBundleHandler.BundleProcessor.getProgressRequestLock().
void reset()
Must be invoked from the main bundle processing thread and while holding the ProcessBundleHandler.BundleProcessor.getProgressRequestLock().