Class ReindexMetrics
java.lang.Object
com.atlassian.confluence.functest.rest.admin.sqlcapture.ReindexMetrics
This class listens to reindex events generated by confluence core, and uses the
HibernateSqlCollector
to
capture and analyze SQL queries issued by the various threads that particiate in the reindexing process.
The logic maks a few assumptions about how the reindexing proces works; (a) that paired ReindexStartedEvent
s
and ReindexFinishedEvent
s are generated on the same thread, (b) that paired ReindexBatchStartedEvent
s
and ReindexBatchFinishedEvent
s are on the same thread, and (c) that the events are synchronous, and are received
by this class on the same thread that published them.-
Constructor Summary
ConstructorsConstructorDescriptionReindexMetrics
(com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar, HibernateSqlCollector sqlCollector) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
void
void
-
Constructor Details
-
ReindexMetrics
public ReindexMetrics(com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar, HibernateSqlCollector sqlCollector)
-
-
Method Details
-
onReindexingStart
-
onReindexingBatchStart
-
onReindexingBatchFinish
-
onReindexingFinish
-
registerEventListener
@PostConstruct public void registerEventListener() -
unregisterEventListener
@PreDestroy public void unregisterEventListener()
-