Class UiMonitoring

java.lang.Object
io.jmix.flowui.monitoring.UiMonitoring

@Deprecated(since="3.0", forRemoval=true) public class UiMonitoring extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
Legacy Timer-based instrumentation, kept for back-compat with dashboards built on the old tag schema. New code should use UiObservationSupport, which provides modern Observation-based instrumentation. The internal bridge to this class — LegacyUiTimerSupport — is also marked for removal.
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 Type
    Method
    Description
    protected static boolean
    canDataLoaderBeMonitored(@Nullable DataLoaderLifeCycle lifeCycle, @Nullable DataLoaderMonitoringInfo monitoringInfo)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected static boolean
    canViewBeMonitored(@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.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.
     
    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.
     
    protected static String
    handleNullTag(@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.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.
    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 specific DataLoaderLifeCycle stage for a DataLoader.
    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 specific ViewLifeCycle phase for a View.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 provided MeterRegistry to create and return a Timer.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 specific DataLoaderLifeCycle stage for a DataLoader. Utilizes the provided Timer.Sample and records the duration into a MeterRegistry.
      Parameters:
      sample - the timer sample to stop
      meterRegistry - the meter registry to record metrics into
      lifeCycle - the life cycle stage of the DataLoader
      info - 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 specific ViewLifeCycle phase for a View. Utilizes the provided Timer.Sample and records the duration into a MeterRegistry.
      Parameters:
      sample - the timer sample to stop
      meterRegistry - the meter registry to record metrics into
      lifeCycle - the life cycle phase of the View
      viewId - the unique identifier of the View, may be null
    • 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

      protected static String handleNullTag(@Nullable String tag)
      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.