Package org.powertac.visualizer.config
Class MetricsConfiguration
- java.lang.Object
-
- com.ryantenney.metrics.spring.config.annotation.MetricsConfigurerAdapter
-
- org.powertac.visualizer.config.MetricsConfiguration
-
- All Implemented Interfaces:
com.ryantenney.metrics.spring.config.annotation.MetricsConfigurer
,org.springframework.beans.factory.DisposableBean
,org.springframework.boot.web.servlet.ServletContextInitializer
@Configuration @EnableMetrics(proxyTargetClass=true) public class MetricsConfiguration extends com.ryantenney.metrics.spring.config.annotation.MetricsConfigurerAdapter implements org.springframework.boot.web.servlet.ServletContextInitializer
-
-
Constructor Summary
Constructors Constructor Description MetricsConfiguration(io.github.jhipster.config.JHipsterProperties jHipsterProperties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.codahale.metrics.health.HealthCheckRegistry
getHealthCheckRegistry()
com.codahale.metrics.MetricRegistry
getMetricRegistry()
void
init()
void
onStartup(javax.servlet.ServletContext servletContext)
void
setHikariDataSource(com.zaxxer.hikari.HikariDataSource hikariDataSource)
-
-
-
Method Detail
-
setHikariDataSource
@Autowired(required=false) public void setHikariDataSource(com.zaxxer.hikari.HikariDataSource hikariDataSource)
-
getMetricRegistry
@Bean public com.codahale.metrics.MetricRegistry getMetricRegistry()
- Specified by:
getMetricRegistry
in interfacecom.ryantenney.metrics.spring.config.annotation.MetricsConfigurer
- Overrides:
getMetricRegistry
in classcom.ryantenney.metrics.spring.config.annotation.MetricsConfigurerAdapter
-
getHealthCheckRegistry
@Bean public com.codahale.metrics.health.HealthCheckRegistry getHealthCheckRegistry()
- Specified by:
getHealthCheckRegistry
in interfacecom.ryantenney.metrics.spring.config.annotation.MetricsConfigurer
- Overrides:
getHealthCheckRegistry
in classcom.ryantenney.metrics.spring.config.annotation.MetricsConfigurerAdapter
-
init
@PostConstruct public void init()
-
onStartup
public void onStartup(javax.servlet.ServletContext servletContext)
- Specified by:
onStartup
in interfaceorg.springframework.boot.web.servlet.ServletContextInitializer
-
-