Package org.apache.beam.sdk.metrics
Class DelegatingGauge
java.lang.Object
org.apache.beam.sdk.metrics.DelegatingGauge
- All Implemented Interfaces:
Serializable
,Gauge
,Metric
Implementation of
Gauge
that delegates to the instance for the current context.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDelegatingGauge
(MetricName name) Create aDelegatingGauge
withperWorkerGauge
andprocessWideContainer
set to false.DelegatingGauge
(MetricName name, boolean processWideContainer) -
Method Summary
Modifier and TypeMethodDescriptiongetName()
TheMetricName
given to this metric.void
set
(long n) Set the gauge.
-
Constructor Details
-
DelegatingGauge
Create aDelegatingGauge
withperWorkerGauge
andprocessWideContainer
set to false.- Parameters:
name
- Metric name for this metric.
-
DelegatingGauge
- Parameters:
name
- Metric name for this metric.processWideContainer
- Whether this gauge is stored in the ProcessWide container or the current thread's container.
-
-
Method Details