Class Metrics
- java.lang.Object
-
- org.apache.beam.fn.harness.control.Metrics
-
public class Metrics extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceMetrics.BundleCounterACounterthat is designed to report intermediate and final results and can be re-used after being reset.static interfaceMetrics.BundleDistributionADistributionthat is designed to report intermediate and final results and can be re-used after being reset.
-
Constructor Summary
Constructors Constructor Description Metrics()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Metrics.BundleCounterbundleProcessingThreadCounter(java.lang.String shortId, org.apache.beam.sdk.metrics.MetricName name)Returns a counter that will report an accurate final value.static Metrics.BundleDistributionbundleProcessingThreadDistribution(java.lang.String shortId, org.apache.beam.sdk.metrics.MetricName name)Returns aDistributionthat will report an accurate final value.
-
-
-
Method Detail
-
bundleProcessingThreadCounter
public static Metrics.BundleCounter bundleProcessingThreadCounter(java.lang.String shortId, org.apache.beam.sdk.metrics.MetricName name)
Returns a counter that will report an accurate final value.All invocations to
Countermethods must be done by the main bundle processing thread.All invocations to
BundleProgressReportermethods must be done while holding theProcessBundleHandler.BundleProcessor.getProgressRequestLock().
-
bundleProcessingThreadDistribution
public static Metrics.BundleDistribution bundleProcessingThreadDistribution(java.lang.String shortId, org.apache.beam.sdk.metrics.MetricName name)
Returns aDistributionthat will report an accurate final value.All invocations to
Distributionmethods must be done by the main bundle processing thread.All invocations to
BundleProgressReportermethods must be done while holding theProcessBundleHandler.BundleProcessor.getProgressRequestLock().
-
-