Package org.apache.beam.sdk.metrics
Class MetricsOptions.NoOpMetricsSink
- java.lang.Object
-
- org.apache.beam.sdk.metrics.MetricsOptions.NoOpMetricsSink
-
- All Implemented Interfaces:
DefaultValueFactory<java.lang.Class<? extends MetricsSink>>
- Enclosing interface:
- MetricsOptions
public static class MetricsOptions.NoOpMetricsSink extends java.lang.Object implements DefaultValueFactory<java.lang.Class<? extends MetricsSink>>
ADefaultValueFactory
that obtains the class of theNoOpMetricsSink
if it exists on the classpath, and throws an exception otherwise.As the
NoOpMetricsSink
is in an independent module, it cannot be directly referenced as theDefault
. However, it should still be used if available.
-
-
Constructor Summary
Constructors Constructor Description NoOpMetricsSink()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<? extends MetricsSink>
create(PipelineOptions options)
Creates a default value for a getter marked withDefault.InstanceFactory
.
-
-
-
Method Detail
-
create
public java.lang.Class<? extends MetricsSink> create(PipelineOptions options)
Description copied from interface:DefaultValueFactory
Creates a default value for a getter marked withDefault.InstanceFactory
.- Specified by:
create
in interfaceDefaultValueFactory<java.lang.Class<? extends MetricsSink>>
- Parameters:
options
- The current pipeline options.- Returns:
- The default value to be used for the annotated getter.
-
-