Class ThreadLocalOperationsMonitor
- java.lang.Object
-
- com.evolveum.midpoint.schema.internals.ThreadLocalOperationsMonitor
-
public class ThreadLocalOperationsMonitor extends Object
Monitors operations for the current thread. Information on these operations are then stored e.g. to operation result and available via tracing.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ThreadLocalOperationsMonitor.ExecutedOperations
class
ThreadLocalOperationsMonitor.OperationExecution
-
Constructor Summary
Constructors Constructor Description ThreadLocalOperationsMonitor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static @NotNull ThreadLocalOperationsMonitor
get()
@NotNull OperationMonitoringConfiguration
getConfiguration()
@NotNull ThreadLocalOperationsMonitor.ExecutedOperations
getExecutedOperations()
MonitoredOperationsStatisticsType
getMonitoredOperationsRecord(@NotNull ThreadLocalOperationsMonitor.ExecutedOperations base)
static void
recordEnd(@NotNull MonitoredOperationType operation)
Records the end of an operation - if applicable.static void
recordEndEmbedded(ThreadLocalOperationsMonitor.OperationExecution execution)
static void
recordStart(@NotNull MonitoredOperationType operation)
Records the start of an operation - if applicable.static @Nullable ThreadLocalOperationsMonitor.OperationExecution
recordStartEmbedded(MonitoredOperationType operation)
void
setConfiguration(@NotNull OperationMonitoringConfiguration configuration)
-
-
-
Method Detail
-
recordStart
public static void recordStart(@NotNull @NotNull MonitoredOperationType operation)
Records the start of an operation - if applicable. In this case the we are responsible for checking the applicability.
-
recordEnd
public static void recordEnd(@NotNull @NotNull MonitoredOperationType operation)
Records the end of an operation - if applicable. In this case the we are responsible for checking the applicability.
-
recordStartEmbedded
@Nullable public static @Nullable ThreadLocalOperationsMonitor.OperationExecution recordStartEmbedded(MonitoredOperationType operation)
-
recordEndEmbedded
public static void recordEndEmbedded(ThreadLocalOperationsMonitor.OperationExecution execution)
-
get
@NotNull public static @NotNull ThreadLocalOperationsMonitor get()
-
getConfiguration
@NotNull public @NotNull OperationMonitoringConfiguration getConfiguration()
-
setConfiguration
public void setConfiguration(@NotNull @NotNull OperationMonitoringConfiguration configuration)
-
getMonitoredOperationsRecord
public MonitoredOperationsStatisticsType getMonitoredOperationsRecord(@NotNull @NotNull ThreadLocalOperationsMonitor.ExecutedOperations base)
-
getExecutedOperations
@NotNull public @NotNull ThreadLocalOperationsMonitor.ExecutedOperations getExecutedOperations()
-
-