Package io.jmix.flowui.monitoring
Class UiMonitoring
java.lang.Object
io.jmix.flowui.monitoring.UiMonitoring
-
Method Summary
Modifier and TypeMethodDescriptionprotected static boolean
canDataLoaderBeMonitored
(DataLoaderLifeCycle lifeCycle, DataLoaderMonitoringInfo monitoringInfo) protected static boolean
canViewBeMonitored
(ViewLifeCycle lifeCycle, String viewId) protected static io.micrometer.core.instrument.Timer
createDataLoaderTimer
(io.micrometer.core.instrument.MeterRegistry meterRegistry, DataLoaderLifeCycle lifeCycle, String viewId, String loaderId) protected static io.micrometer.core.instrument.Timer
createViewTimer
(io.micrometer.core.instrument.MeterRegistry meterRegistry, ViewLifeCycle lifeCycle, String viewId) protected static String
handleNullTag
(String tag) Prevents null from being tag value.static io.micrometer.core.instrument.Timer.Sample
startTimerSample
(io.micrometer.core.instrument.MeterRegistry meterRegistry) static void
stopDataLoaderTimerSample
(io.micrometer.core.instrument.Timer.Sample sample, io.micrometer.core.instrument.MeterRegistry meterRegistry, DataLoaderLifeCycle lifeCycle, DataLoaderMonitoringInfo info) static void
stopViewTimerSample
(io.micrometer.core.instrument.Timer.Sample sample, io.micrometer.core.instrument.MeterRegistry meterRegistry, ViewLifeCycle lifeCycle, String viewId)
-
Method Details
-
startTimerSample
public static io.micrometer.core.instrument.Timer.Sample startTimerSample(io.micrometer.core.instrument.MeterRegistry meterRegistry) -
stopDataLoaderTimerSample
public static void stopDataLoaderTimerSample(io.micrometer.core.instrument.Timer.Sample sample, io.micrometer.core.instrument.MeterRegistry meterRegistry, DataLoaderLifeCycle lifeCycle, DataLoaderMonitoringInfo info) -
stopViewTimerSample
public static void stopViewTimerSample(io.micrometer.core.instrument.Timer.Sample sample, io.micrometer.core.instrument.MeterRegistry meterRegistry, ViewLifeCycle lifeCycle, @Nullable String viewId) -
createViewTimer
protected static io.micrometer.core.instrument.Timer createViewTimer(io.micrometer.core.instrument.MeterRegistry meterRegistry, ViewLifeCycle lifeCycle, String viewId) -
createDataLoaderTimer
protected static io.micrometer.core.instrument.Timer createDataLoaderTimer(io.micrometer.core.instrument.MeterRegistry meterRegistry, DataLoaderLifeCycle lifeCycle, String viewId, String loaderId) -
canDataLoaderBeMonitored
protected static boolean canDataLoaderBeMonitored(@Nullable DataLoaderLifeCycle lifeCycle, @Nullable DataLoaderMonitoringInfo monitoringInfo) -
canViewBeMonitored
protected static boolean canViewBeMonitored(@Nullable ViewLifeCycle lifeCycle, @Nullable String viewId) -
handleNullTag
Prevents null from being tag value. Actual sanity check should be performed before and prevent monitoring at all.
-