public final class IOStatisticsContextIntegration
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
static java.util.concurrent.atomic.AtomicLong |
INSTANCE_ID |
ID for next instance to create.
|
| Modifier and Type | Method | Description |
|---|---|---|
static void |
enableIOStatisticsContext() |
A method to enable IOStatisticsContext to override if set otherwise in
the configurations for tests.
|
static IOStatisticsContext |
getCurrentIOStatisticsContext() |
Get the current thread's IOStatisticsContext instance.
|
static IOStatisticsContext |
getThreadSpecificIOStatisticsContext(long testThreadId) |
Get thread ID specific IOStatistics values if
statistics are enabled and the thread ID is in the map.
|
static boolean |
isIOStatisticsThreadLevelEnabled() |
Static probe to check if the thread-level IO statistics enabled.
|
static void |
setThreadIOStatisticsContext(IOStatisticsContext statisticsContext) |
Set the IOStatisticsContext for the current thread.
|
public static final java.util.concurrent.atomic.AtomicLong INSTANCE_ID
public static boolean isIOStatisticsThreadLevelEnabled()
public static IOStatisticsContext getCurrentIOStatisticsContext()
public static void setThreadIOStatisticsContext(IOStatisticsContext statisticsContext)
statisticsContext - IOStatistics context instance for the
current thread. If null, the context is reset.@VisibleForTesting public static IOStatisticsContext getThreadSpecificIOStatisticsContext(long testThreadId)
testThreadId - thread ID.@VisibleForTesting public static void enableIOStatisticsContext()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.