Package org.apache.beam.sdk.metrics
Class MetricsOptions.NoOpMetricsSink
java.lang.Object
org.apache.beam.sdk.metrics.MetricsOptions.NoOpMetricsSink
- All Implemented Interfaces:
DefaultValueFactory<Class<? extends MetricsSink>>
- Enclosing interface:
MetricsOptions
public static class MetricsOptions.NoOpMetricsSink
extends Object
implements DefaultValueFactory<Class<? extends MetricsSink>>
A
DefaultValueFactory
that obtains the class of the NoOpMetricsSink
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 the Default
. However, it should still be used if available.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass
<? extends MetricsSink> create
(PipelineOptions options) Creates a default value for a getter marked withDefault.InstanceFactory
.
-
Constructor Details
-
NoOpMetricsSink
public NoOpMetricsSink()
-
-
Method Details
-
create
Description copied from interface:DefaultValueFactory
Creates a default value for a getter marked withDefault.InstanceFactory
.- Specified by:
create
in interfaceDefaultValueFactory<Class<? extends MetricsSink>>
- Parameters:
options
- The current pipeline options.- Returns:
- The default value to be used for the annotated getter.
-