Class ThreadLimiterAnalyticsServiceImpl
java.lang.Object
com.atlassian.confluence.impl.threadlimiter.analyticsservice.ThreadLimiterAnalyticsServiceImpl
- All Implemented Interfaces:
ThreadLimiterAnalyticsService
public class ThreadLimiterAnalyticsServiceImpl
extends Object
implements ThreadLimiterAnalyticsService
Class responsible for collecting and sending analytics which will be used by the thread limiter analytics service.
- Since:
- 9.3.0
-
Field Summary
Fields inherited from interface com.atlassian.confluence.impl.threadlimiter.analyticsservice.ThreadLimiterAnalyticsService
log, THREAD_LIMITER_DISABLED, threadLimiterAnalyticsServiceRef
-
Constructor Summary
ConstructorsConstructorDescriptionThreadLimiterAnalyticsServiceImpl
(com.atlassian.event.api.EventPublisher eventPublisher, MacroViewAnalyticsStorage macroViewAnalyticsStorage, SearchRequestsAnalyticsStorage searchRequestAnalyticsStorage, SystemInformationService systemInformationService, ClusterManager clusterManager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Is called when the analytics should be sent to the server (called by the scheduler).long
onMacroStartRendering
(MacroDefinition macroDefinition) Is called when the macro rendering startsvoid
onMacroStopRendering
(long renderingId) Is called when the macro rendering finishesvoid
onSearchRequestProcessingFinish
(long requestProcessingId) Is called when the search request processing finishes.long
Is called when the search request processing starts.
-
Constructor Details
-
ThreadLimiterAnalyticsServiceImpl
public ThreadLimiterAnalyticsServiceImpl(com.atlassian.event.api.EventPublisher eventPublisher, MacroViewAnalyticsStorage macroViewAnalyticsStorage, SearchRequestsAnalyticsStorage searchRequestAnalyticsStorage, SystemInformationService systemInformationService, ClusterManager clusterManager)
-
-
Method Details
-
onMacroStartRendering
Description copied from interface:ThreadLimiterAnalyticsService
Is called when the macro rendering starts- Specified by:
onMacroStartRendering
in interfaceThreadLimiterAnalyticsService
- Parameters:
macroDefinition
- macro definition- Returns:
- unique rendering id
-
onMacroStopRendering
public void onMacroStopRendering(long renderingId) Description copied from interface:ThreadLimiterAnalyticsService
Is called when the macro rendering finishes- Specified by:
onMacroStopRendering
in interfaceThreadLimiterAnalyticsService
- Parameters:
renderingId
- rendering id provided by onMacroStartRendering call.
-
onSearchRequestProcessingStart
public long onSearchRequestProcessingStart()Description copied from interface:ThreadLimiterAnalyticsService
Is called when the search request processing starts.- Specified by:
onSearchRequestProcessingStart
in interfaceThreadLimiterAnalyticsService
- Returns:
- unique processing id
-
onSearchRequestProcessingFinish
public void onSearchRequestProcessingFinish(long requestProcessingId) Description copied from interface:ThreadLimiterAnalyticsService
Is called when the search request processing finishes.- Specified by:
onSearchRequestProcessingFinish
in interfaceThreadLimiterAnalyticsService
- Parameters:
requestProcessingId
- id provided by onSearchRequestProcessingStart call.
-
flushAnalytics
public void flushAnalytics()Description copied from interface:ThreadLimiterAnalyticsService
Is called when the analytics should be sent to the server (called by the scheduler).- Specified by:
flushAnalytics
in interfaceThreadLimiterAnalyticsService
-