public abstract class MicrometerBinderRegistrar extends Object implements org.springframework.context.ApplicationContextAware
This will only happen if ConfluenceMicrometer.isMicrometerEnabled()
is true.
Constructor and Description |
---|
MicrometerBinderRegistrar(io.micrometer.core.instrument.MeterRegistry meterRegistry,
MBeanServer mBeanServer,
com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar) |
Modifier and Type | Method and Description |
---|---|
protected abstract org.hibernate.engine.spi.SessionFactoryImplementor |
getTenantedSessionFactory()
Spring will subclass this class and provide the Hibernate
SessionFactory via this method. |
void |
initSystemMetrics() |
void |
initTomcatMetrics() |
void |
onTenantArrived(com.atlassian.tenancy.api.event.TenantArrivedEvent event)
Some services aren't available until we have a tenant, so defer binding metrics for those until then.
|
void |
registerEventListeners() |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
unregisterEventListeners() |
public MicrometerBinderRegistrar(io.micrometer.core.instrument.MeterRegistry meterRegistry, MBeanServer mBeanServer, com.atlassian.event.api.EventListenerRegistrar eventListenerRegistrar)
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
@PostConstruct public void initSystemMetrics()
@PostConstruct public void initTomcatMetrics() throws ReflectiveOperationException
ReflectiveOperationException
@PostConstruct public void registerEventListeners()
@PreDestroy public void unregisterEventListeners()
@EventListener public void onTenantArrived(com.atlassian.tenancy.api.event.TenantArrivedEvent event)
protected abstract org.hibernate.engine.spi.SessionFactoryImplementor getTenantedSessionFactory()
SessionFactory
via this method.Copyright © 2003–2020 Atlassian. All rights reserved.