public final class ReindexMetrics extends Object
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 ReindexStartedEvents
and ReindexFinishedEvents are generated on the same thread, (b) that paired ReindexBatchStartedEvents
and ReindexBatchFinishedEvents 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 and Description |
|---|
ReindexMetrics(com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar,
HibernateSqlCollector sqlCollector) |
| Modifier and Type | Method and Description |
|---|---|
void |
onReindexingBatchFinish(ReindexBatchFinishedEvent event) |
void |
onReindexingBatchStart(ReindexBatchStartedEvent event) |
void |
onReindexingFinish(ReindexFinishedEvent event) |
void |
onReindexingStart(ReindexStartedEvent event) |
void |
registerEventListener() |
void |
unregisterEventListener() |
public ReindexMetrics(com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar,
HibernateSqlCollector sqlCollector)
@EventListener public void onReindexingStart(ReindexStartedEvent event)
@EventListener public void onReindexingBatchStart(ReindexBatchStartedEvent event)
@EventListener public void onReindexingBatchFinish(ReindexBatchFinishedEvent event)
@EventListener public void onReindexingFinish(ReindexFinishedEvent event)
@PostConstruct public void registerEventListener()
@PreDestroy public void unregisterEventListener()
Copyright © 2003–2022 Atlassian. All rights reserved.