public abstract class Monitoring
extends java.lang.Object
implements java.io.Serializable
Metric
s 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
Modifier and Type | Class and Description |
---|---|
static class |
Monitoring.Builder |
Constructor and Description |
---|
Monitoring() |
Modifier and Type | Method and Description |
---|---|
static Monitoring.Builder |
builder() |
abstract java.lang.Boolean |
getCountBackoffs()
Count invocations of
BackOff.nextBackOffMillis() . |
abstract java.lang.Boolean |
getCountCacheReadFailures()
Count
Cache read failures. |
abstract java.lang.Boolean |
getCountCacheReadNonNulls()
Count associated non-null values resulting from
Cache reads. |
abstract java.lang.Boolean |
getCountCacheReadNulls()
Count associated null values resulting from
Cache reads. |
abstract java.lang.Boolean |
getCountCacheReadRequests()
Count number of attempts to read from the
Cache . |
abstract java.lang.Boolean |
getCountCacheWriteFailures()
Count
Cache write failures. |
abstract java.lang.Boolean |
getCountCacheWriteRequests()
Count number of attempts to write to the
Cache . |
abstract java.lang.Boolean |
getCountCacheWriteSuccesses()
Count
Cache write successes. |
abstract java.lang.Boolean |
getCountCalls()
Count invocations of
Caller.call(RequestT) . |
abstract java.lang.Boolean |
getCountFailures()
Count failures resulting from
Call 's successful Caller invocation. |
abstract java.lang.Boolean |
getCountRequests()
Count incoming request elements processed by
Call 's DoFn . |
abstract java.lang.Boolean |
getCountResponses()
Count outgoing responses resulting from
Call 's successful Caller invocation. |
abstract java.lang.Boolean |
getCountSetup()
Count invocations of
SetupTeardown.setup() . |
abstract java.lang.Boolean |
getCountShouldBackoff()
Count when
CallShouldBackoff.isTrue() is found true. |
abstract java.lang.Boolean |
getCountSleeps()
Count invocations of
Sleeper.sleep(long) . |
abstract java.lang.Boolean |
getCountTeardown()
Count invocations of
SetupTeardown.teardown() . |
abstract Monitoring.Builder |
toBuilder() |
Monitoring |
withEverythingCounted()
Turns on all monitoring.
|
Monitoring |
withEverythingCountedExceptedCaching()
Turns on all monitoring except for cache related metrics.
|
public static Monitoring.Builder builder()
public abstract java.lang.Boolean getCountRequests()
Call
's DoFn
.public abstract java.lang.Boolean getCountResponses()
Call
's successful Caller
invocation.public abstract java.lang.Boolean getCountCalls()
Caller.call(RequestT)
.public abstract java.lang.Boolean getCountFailures()
Call
's successful Caller
invocation.public abstract java.lang.Boolean getCountSetup()
SetupTeardown.setup()
.public abstract java.lang.Boolean getCountTeardown()
SetupTeardown.teardown()
.public abstract java.lang.Boolean getCountBackoffs()
BackOff.nextBackOffMillis()
.public abstract java.lang.Boolean getCountSleeps()
Sleeper.sleep(long)
.public abstract java.lang.Boolean getCountShouldBackoff()
CallShouldBackoff.isTrue()
is found true.public abstract java.lang.Boolean getCountCacheReadRequests()
Cache
.public abstract java.lang.Boolean getCountCacheReadNulls()
Cache
reads.public abstract java.lang.Boolean getCountCacheReadNonNulls()
Cache
reads.public abstract java.lang.Boolean getCountCacheReadFailures()
Cache
read failures.public abstract java.lang.Boolean getCountCacheWriteRequests()
Cache
.public abstract java.lang.Boolean getCountCacheWriteSuccesses()
Cache
write successes.public abstract java.lang.Boolean getCountCacheWriteFailures()
Cache
write failures.public Monitoring withEverythingCounted()
toBuilder()
and
other setters, to turn everything on except for a few select counters.public Monitoring withEverythingCountedExceptedCaching()
public abstract Monitoring.Builder toBuilder()