Class Monitoring
java.lang.Object
org.apache.beam.io.requestresponse.Monitoring
- All Implemented Interfaces:
Serializable
Configures
Metrics throughout various features of RequestResponseIO. By default,
all monitoring is turned off.
Cache metrics are not yet supported. See https://github.com/apache/beam/issues/29888
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Monitoring.Builderbuilder()abstract booleanCount invocations ofBackOff.nextBackOffMillis().abstract booleanCountCacheread failures.abstract booleanCount associated non-null values resulting fromCachereads.abstract booleanCount associated null values resulting fromCachereads.abstract booleanCount number of attempts to read from theCache.abstract booleanCountCachewrite failures.abstract booleanCount number of attempts to write to theCache.abstract booleanCountCachewrite successes.abstract booleanCount invocations ofCaller.call(RequestT).abstract booleanCount failures resulting fromCall's successfulCallerinvocation.abstract booleanCount incoming request elements processed byCall'sDoFn.abstract booleanCount outgoing responses resulting fromCall's successfulCallerinvocation.abstract booleanCount invocations ofSetupTeardown.setup().abstract booleanCount whenCallShouldBackoff.isTrue()is found true.abstract booleanCount invocations ofSleeper.sleep(long).abstract booleanCount invocations ofSetupTeardown.teardown().abstract Monitoring.BuilderTurns on all monitoring.Turns on all monitoring except for cache related metrics.
-
Constructor Details
-
Monitoring
public Monitoring()
-
-
Method Details
-
builder
-
getCountRequests
public abstract boolean getCountRequests()Count incoming request elements processed byCall'sDoFn. -
getCountResponses
public abstract boolean getCountResponses()Count outgoing responses resulting fromCall's successfulCallerinvocation. -
getCountCalls
public abstract boolean getCountCalls()Count invocations ofCaller.call(RequestT). -
getCountFailures
public abstract boolean getCountFailures()Count failures resulting fromCall's successfulCallerinvocation. -
getCountSetup
public abstract boolean getCountSetup()Count invocations ofSetupTeardown.setup(). -
getCountTeardown
public abstract boolean getCountTeardown()Count invocations ofSetupTeardown.teardown(). -
getCountBackoffs
public abstract boolean getCountBackoffs()Count invocations ofBackOff.nextBackOffMillis(). -
getCountSleeps
public abstract boolean getCountSleeps()Count invocations ofSleeper.sleep(long). -
getCountShouldBackoff
public abstract boolean getCountShouldBackoff()Count whenCallShouldBackoff.isTrue()is found true. -
getCountCacheReadRequests
public abstract boolean getCountCacheReadRequests()Count number of attempts to read from theCache. -
getCountCacheReadNulls
public abstract boolean getCountCacheReadNulls()Count associated null values resulting fromCachereads. -
getCountCacheReadNonNulls
public abstract boolean getCountCacheReadNonNulls()Count associated non-null values resulting fromCachereads. -
getCountCacheReadFailures
public abstract boolean getCountCacheReadFailures()CountCacheread failures. -
getCountCacheWriteRequests
public abstract boolean getCountCacheWriteRequests()Count number of attempts to write to theCache. -
getCountCacheWriteSuccesses
public abstract boolean getCountCacheWriteSuccesses()CountCachewrite successes. -
getCountCacheWriteFailures
public abstract boolean getCountCacheWriteFailures()CountCachewrite failures. -
withEverythingCounted
Turns on all monitoring. The purpose of this method is, when used withtoBuilder()and other setters, to turn everything on except for a few select counters. -
withEverythingCountedExceptedCaching
Turns on all monitoring except for cache related metrics. -
toBuilder
-