Java 类org.springframework.boot.actuate.endpoint.SystemPublicMetrics 实例源码

项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:PublicMetricsAutoConfiguration.java   
@Bean
public SystemPublicMetrics systemPublicMetrics() {
    return new SystemPublicMetrics();
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:PublicMetricsAutoConfigurationTests.java   
@Test
public void systemPublicMetrics() throws Exception {
    load();
    assertThat(this.context.getBeansOfType(SystemPublicMetrics.class)).hasSize(1);
}
项目:spring-boot-concourse    文件:PublicMetricsAutoConfiguration.java   
@Bean
public SystemPublicMetrics systemPublicMetrics() {
    return new SystemPublicMetrics();
}
项目:spring-boot-concourse    文件:PublicMetricsAutoConfigurationTests.java   
@Test
public void systemPublicMetrics() throws Exception {
    load();
    assertThat(this.context.getBeansOfType(SystemPublicMetrics.class)).hasSize(1);
}
项目:citizenship-appointment-server    文件:MetricsConfig.java   
@Bean
public ServletRegistrationBean systemPublicMetricsServlet(SystemPublicMetrics publicMetrics) {
    return new ServletRegistrationBean(createMetricsServlet(publicMetrics), "/monitoring/system");
}
项目:contestparser    文件:PublicMetricsAutoConfiguration.java   
@Bean
public SystemPublicMetrics systemPublicMetrics() {
    return new SystemPublicMetrics();
}
项目:contestparser    文件:PublicMetricsAutoConfigurationTests.java   
@Test
public void systemPublicMetrics() throws Exception {
    load();
    assertEquals(1, this.context.getBeansOfType(SystemPublicMetrics.class).size());
}