public class Metrics
extends java.lang.Object
| Modifier and Type | Class and 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 and Description |
|---|
Metrics() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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. |
public static Metrics.BundleCounter bundleProcessingThreadCounter(java.lang.String shortId, org.apache.beam.sdk.metrics.MetricName name)
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().
public static Metrics.BundleDistribution bundleProcessingThreadDistribution(java.lang.String shortId, org.apache.beam.sdk.metrics.MetricName name)
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().