Class PerformanceLoggingServiceManager
java.lang.Object
com.atlassian.jira.diagnostics.perflog.PerformanceLoggingServiceManager
- All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean,org.springframework.beans.factory.InitializingBean
@Component
public class PerformanceLoggingServiceManager
extends Object
implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
This is the class that brings up the periodic data collection and logging logic
It's build on service abstraction from Guava library
see https://github.com/google/guava/wiki/ServiceExplained
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPerformanceLoggingServiceManager(com.atlassian.event.api.EventPublisher eventPublisher, List<com.google.common.util.concurrent.Service> serviceList) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddestroy()voidonPluginDisabled(com.atlassian.plugin.event.events.PluginDisablingEvent pluginDisabledEvent) voidpluginEnabled(com.atlassian.plugin.event.events.PluginEnabledEvent event)
-
Field Details
-
PLUGIN_KEY
- See Also:
-
-
Constructor Details
-
PerformanceLoggingServiceManager
@Autowired public PerformanceLoggingServiceManager(com.atlassian.event.api.EventPublisher eventPublisher, List<com.google.common.util.concurrent.Service> serviceList)
-
-
Method Details
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
destroy
public void destroy()- Specified by:
destroyin interfaceorg.springframework.beans.factory.DisposableBean
-
onPluginDisabled
@EventListener public void onPluginDisabled(com.atlassian.plugin.event.events.PluginDisablingEvent pluginDisabledEvent) -
pluginEnabled
@EventListener public void pluginEnabled(com.atlassian.plugin.event.events.PluginEnabledEvent event)
-