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
Constructors Constructor Description ThreadLimiterAnalyticsServiceImpl(com.atlassian.event.api.EventPublisher eventPublisher, MacroViewAnalyticsStorage macroViewAnalyticsStorage, SearchRequestsAnalyticsStorage searchRequestAnalyticsStorage, SystemInformationService systemInformationService, ClusterManager clusterManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidflushAnalytics()Is called when the analytics should be sent to the server (called by the scheduler).longonMacroStartRendering(MacroDefinition macroDefinition)Is called when the macro rendering startsvoidonMacroStopRendering(long renderingId)Is called when the macro rendering finishesvoidonSearchRequestProcessingFinish(long requestProcessingId)Is called when the search request processing finishes.longonSearchRequestProcessingStart()Is called when the search request processing starts.
-
-
-
Constructor Detail
-
ThreadLimiterAnalyticsServiceImpl
public ThreadLimiterAnalyticsServiceImpl(com.atlassian.event.api.EventPublisher eventPublisher, MacroViewAnalyticsStorage macroViewAnalyticsStorage, SearchRequestsAnalyticsStorage searchRequestAnalyticsStorage, SystemInformationService systemInformationService, ClusterManager clusterManager)
-
-
Method Detail
-
onMacroStartRendering
public long onMacroStartRendering(MacroDefinition macroDefinition)
Description copied from interface:ThreadLimiterAnalyticsServiceIs called when the macro rendering starts- Specified by:
onMacroStartRenderingin interfaceThreadLimiterAnalyticsService- Parameters:
macroDefinition- macro definition- Returns:
- unique rendering id
-
onMacroStopRendering
public void onMacroStopRendering(long renderingId)
Description copied from interface:ThreadLimiterAnalyticsServiceIs called when the macro rendering finishes- Specified by:
onMacroStopRenderingin interfaceThreadLimiterAnalyticsService- Parameters:
renderingId- rendering id provided by onMacroStartRendering call.
-
onSearchRequestProcessingStart
public long onSearchRequestProcessingStart()
Description copied from interface:ThreadLimiterAnalyticsServiceIs called when the search request processing starts.- Specified by:
onSearchRequestProcessingStartin interfaceThreadLimiterAnalyticsService- Returns:
- unique processing id
-
onSearchRequestProcessingFinish
public void onSearchRequestProcessingFinish(long requestProcessingId)
Description copied from interface:ThreadLimiterAnalyticsServiceIs called when the search request processing finishes.- Specified by:
onSearchRequestProcessingFinishin interfaceThreadLimiterAnalyticsService- Parameters:
requestProcessingId- id provided by onSearchRequestProcessingStart call.
-
flushAnalytics
public void flushAnalytics()
Description copied from interface:ThreadLimiterAnalyticsServiceIs called when the analytics should be sent to the server (called by the scheduler).- Specified by:
flushAnalyticsin interfaceThreadLimiterAnalyticsService
-
-