Class DefaultAppMonitoringMetricsService

java.lang.Object
com.atlassian.jira.instrumentation.DefaultAppMonitoringMetricsService
All Implemented Interfaces:
InitializingComponent, AppMonitoringMetricsService

public class DefaultAppMonitoringMetricsService extends Object implements AppMonitoringMetricsService, InitializingComponent
  • Field Details

    • APP_MONITORING_METRIC_NAMES

      public static final List<String> APP_MONITORING_METRIC_NAMES
      All metrics which are added to this array will be able to be filtered via the Monitoring UI. This might be useful in case you want an admin to be able to turn off a set of possibly performance impacting metrics.
    • ITA_DENY_DARK_FEATURE

      public static final String ITA_DENY_DARK_FEATURE
      See Also:
  • Constructor Details

    • DefaultAppMonitoringMetricsService

      public DefaultAppMonitoringMetricsService(@Nonnull com.atlassian.event.api.EventPublisher eventPublisher, @Nonnull FeatureManager featureManager, @Nonnull JmxMetricsExposer jmxMetricsExposer)
  • Method Details

    • afterInstantiation

      public void afterInstantiation() throws Exception
      Description copied from interface: InitializingComponent
      Called after all the beans are constructed and the ApplicationContext is fully populated. Order of execution is order of bean creation, driven by InitializingComponentProcessor.
      Specified by:
      afterInstantiation in interface InitializingComponent
      Throws:
      Exception
    • setAppMonitoringEnabled

      public void setAppMonitoringEnabled(boolean isEnabled)
      Description copied from interface: AppMonitoringMetricsService
      Set App monitoring should be enabled. In the case of disabled JMX, it enables JMX as well.
      Specified by:
      setAppMonitoringEnabled in interface AppMonitoringMetricsService
      Parameters:
      isEnabled - the desired application monitoring state
    • isAppMonitoringEnabled

      public boolean isAppMonitoringEnabled()
      Specified by:
      isAppMonitoringEnabled in interface AppMonitoringMetricsService
      Returns:
      the current App monitoring state
    • onFeatureEvent

      @EventListener public void onFeatureEvent(FeatureEvent featureEvent)
    • onAnalyticsPluginReadyEvent

      @EventListener public void onAnalyticsPluginReadyEvent(com.atlassian.analytics.api.events.AnalyticsPluginReadyEvent event)
    • onJmxConfigurationChangedEvent

      @EventListener public void onJmxConfigurationChangedEvent(JmxConfigurationChangedEvent jmxConfigurationChangedEvent)