Package io.jmix.flowui.monitoring
Class UiMonitoring
java.lang.Object
io.jmix.flowui.monitoring.UiMonitoring
Deprecated, for removal: This API element is subject to removal in a future version.
Provides utility methods and constants to facilitate UI monitoring, including measuring and recording the
durations of various UI-related operations and lifecycle events.
-
Method Summary
Modifier and TypeMethodDescriptionprotected static booleancanDataLoaderBeMonitored(@Nullable DataLoaderLifeCycle lifeCycle, @Nullable DataLoaderMonitoringInfo monitoringInfo) Deprecated, for removal: This API element is subject to removal in a future version.protected static booleancanViewBeMonitored(@Nullable ViewLifeCycle lifeCycle, @Nullable String viewId) Deprecated, for removal: This API element is subject to removal in a future version.protected static io.micrometer.core.instrument.TimercreateDataLoaderTimer(io.micrometer.core.instrument.MeterRegistry meterRegistry, DataLoaderLifeCycle lifeCycle, String viewId, String loaderId) Deprecated, for removal: This API element is subject to removal in a future version.protected static io.micrometer.core.instrument.TimercreateViewTimer(io.micrometer.core.instrument.MeterRegistry meterRegistry, ViewLifeCycle lifeCycle, String viewId) Deprecated, for removal: This API element is subject to removal in a future version.protected static StringhandleNullTag(@Nullable String tag) Deprecated, for removal: This API element is subject to removal in a future version.Prevents null from being tag value.static io.micrometer.core.instrument.Timer.SamplestartTimerSample(io.micrometer.core.instrument.MeterRegistry meterRegistry) Deprecated, for removal: This API element is subject to removal in a future version.Starts a timer sample for measuring durations of specific operations or lifecycles.static voidstopDataLoaderTimerSample(io.micrometer.core.instrument.Timer.Sample sample, io.micrometer.core.instrument.MeterRegistry meterRegistry, DataLoaderLifeCycle lifeCycle, DataLoaderMonitoringInfo info) Deprecated, for removal: This API element is subject to removal in a future version.Stops the timer sample that measures the duration of a specificDataLoaderLifeCyclestage for aDataLoader.static voidstopViewTimerSample(io.micrometer.core.instrument.Timer.Sample sample, io.micrometer.core.instrument.MeterRegistry meterRegistry, ViewLifeCycle lifeCycle, @Nullable String viewId) Deprecated, for removal: This API element is subject to removal in a future version.Stops the timer sample that measures the duration of a specificViewLifeCyclephase for aView.
-
Method Details
-
startTimerSample
public static io.micrometer.core.instrument.Timer.Sample startTimerSample(io.micrometer.core.instrument.MeterRegistry meterRegistry) Deprecated, for removal: This API element is subject to removal in a future version.Starts a timer sample for measuring durations of specific operations or lifecycles. This method utilizes the providedMeterRegistryto create and return aTimer.Sample.- Parameters:
meterRegistry- the meter registry used to initialize the timer sample- Returns:
- Returns the newly created timer sample
-
stopDataLoaderTimerSample
public static void stopDataLoaderTimerSample(io.micrometer.core.instrument.Timer.Sample sample, io.micrometer.core.instrument.MeterRegistry meterRegistry, DataLoaderLifeCycle lifeCycle, DataLoaderMonitoringInfo info) Deprecated, for removal: This API element is subject to removal in a future version.Stops the timer sample that measures the duration of a specificDataLoaderLifeCyclestage for aDataLoader. Utilizes the providedTimer.Sampleand records the duration into aMeterRegistry.- Parameters:
sample- the timer sample to stopmeterRegistry- the meter registry to record metrics intolifeCycle- the life cycle stage of theDataLoaderinfo- monitoring information, including the view ID and loader ID.
-
stopViewTimerSample
public static void stopViewTimerSample(io.micrometer.core.instrument.Timer.Sample sample, io.micrometer.core.instrument.MeterRegistry meterRegistry, ViewLifeCycle lifeCycle, @Nullable String viewId) Deprecated, for removal: This API element is subject to removal in a future version.Stops the timer sample that measures the duration of a specificViewLifeCyclephase for aView. Utilizes the providedTimer.Sampleand records the duration into aMeterRegistry. -
createViewTimer
protected static io.micrometer.core.instrument.Timer createViewTimer(io.micrometer.core.instrument.MeterRegistry meterRegistry, ViewLifeCycle lifeCycle, String viewId) Deprecated, for removal: This API element is subject to removal in a future version. -
createDataLoaderTimer
protected static io.micrometer.core.instrument.Timer createDataLoaderTimer(io.micrometer.core.instrument.MeterRegistry meterRegistry, DataLoaderLifeCycle lifeCycle, String viewId, String loaderId) Deprecated, for removal: This API element is subject to removal in a future version. -
canDataLoaderBeMonitored
protected static boolean canDataLoaderBeMonitored(@Nullable DataLoaderLifeCycle lifeCycle, @Nullable DataLoaderMonitoringInfo monitoringInfo) Deprecated, for removal: This API element is subject to removal in a future version. -
canViewBeMonitored
protected static boolean canViewBeMonitored(@Nullable ViewLifeCycle lifeCycle, @Nullable String viewId) Deprecated, for removal: This API element is subject to removal in a future version. -
handleNullTag
Deprecated, for removal: This API element is subject to removal in a future version.Prevents null from being tag value. Actual sanity check should be performed before and prevent monitoring at all.
-
Timer-based instrumentation, kept for back-compat with dashboards built on the old tag schema. New code should useUiObservationSupport, which provides modern Observation-based instrumentation. The internal bridge to this class —LegacyUiTimerSupport— is also marked for removal.