Class Metrics


  • public class Metrics
    extends java.lang.Object
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static interface  Metrics.BundleCounter
      A Counter that is designed to report intermediate and final results and can be re-used after being reset.
      static interface  Metrics.BundleDistribution
      A Distribution that is designed to report intermediate and final results and can be re-used after being reset.
    • Constructor Summary

      Constructors 
      Constructor Description
      Metrics()  
    • Constructor Detail

      • Metrics

        public Metrics()
    • 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 Counter methods must be done by the main bundle processing thread.

        All invocations to BundleProgressReporter methods must be done while holding the ProcessBundleHandler.BundleProcessor.getProgressRequestLock().

      • bundleProcessingThreadDistribution

        public static Metrics.BundleDistribution bundleProcessingThreadDistribution​(java.lang.String shortId,
                                                                                    org.apache.beam.sdk.metrics.MetricName name)
        Returns a Distribution that will report an accurate final value.

        All invocations to Distribution methods must be done by the main bundle processing thread.

        All invocations to BundleProgressReporter methods must be done while holding the ProcessBundleHandler.BundleProcessor.getProgressRequestLock().