Java 类org.springframework.boot.actuate.trace.TraceRepository 实例源码

项目:spring-cloud-canary    文件:AnalysisController.java   
@Autowired
public AnalysisController(AnalysisService analysisService, TraceRepository traceRepository, ObjectMapper objectMapper) {

    this.analysisService = analysisService;
    this.traceRepository = traceRepository;
    this.objectMapper = objectMapper;
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:TraceWebFilterAutoConfiguration.java   
public TraceWebFilterAutoConfiguration(TraceRepository traceRepository,
        TraceProperties traceProperties,
        ObjectProvider<ErrorAttributes> errorAttributesProvider) {
    this.traceRepository = traceRepository;
    this.traceProperties = traceProperties;
    this.errorAttributes = errorAttributesProvider.getIfAvailable();
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:EndpointAutoConfiguration.java   
public EndpointAutoConfiguration(
        ObjectProvider<HealthAggregator> healthAggregatorProvider,
        ObjectProvider<Map<String, HealthIndicator>> healthIndicatorsProvider,
        ObjectProvider<List<InfoContributor>> infoContributorsProvider,
        ObjectProvider<Collection<PublicMetrics>> publicMetricsProvider,
        ObjectProvider<TraceRepository> traceRepositoryProvider) {
    this.healthAggregator = healthAggregatorProvider.getIfAvailable();
    this.healthIndicators = healthIndicatorsProvider.getIfAvailable();
    this.infoContributors = infoContributorsProvider.getIfAvailable();
    this.publicMetrics = publicMetricsProvider.getIfAvailable();
    this.traceRepository = traceRepositoryProvider.getIfAvailable();
}
项目:spring-boot-concourse    文件:TraceWebFilterAutoConfiguration.java   
public TraceWebFilterAutoConfiguration(TraceRepository traceRepository,
        TraceProperties traceProperties,
        ObjectProvider<ErrorAttributes> errorAttributesProvider) {
    this.traceRepository = traceRepository;
    this.traceProperties = traceProperties;
    this.errorAttributes = errorAttributesProvider.getIfAvailable();
}
项目:spring-boot-concourse    文件:EndpointAutoConfiguration.java   
public EndpointAutoConfiguration(
        ObjectProvider<HealthAggregator> healthAggregatorProvider,
        ObjectProvider<Map<String, HealthIndicator>> healthIndicatorsProvider,
        ObjectProvider<List<InfoContributor>> infoContributorsProvider,
        ObjectProvider<Collection<PublicMetrics>> publicMetricsProvider,
        ObjectProvider<TraceRepository> traceRepositoryProvider) {
    this.healthAggregator = healthAggregatorProvider.getIfAvailable();
    this.healthIndicators = healthIndicatorsProvider.getIfAvailable();
    this.infoContributors = infoContributorsProvider.getIfAvailable();
    this.publicMetrics = publicMetricsProvider.getIfAvailable();
    this.traceRepository = traceRepositoryProvider.getIfAvailable();
}
项目:spring-boot-concourse    文件:TraceRepositoryAutoConfigurationTests.java   
@Test
public void skipsIfRepositoryExists() throws Exception {
    AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(
            Config.class, TraceRepositoryAutoConfiguration.class);
    assertThat(context.getBeansOfType(InMemoryTraceRepository.class)).isEmpty();
    assertThat(context.getBeansOfType(TraceRepository.class)).hasSize(1);
    context.close();
}
项目:spring-cloud-stream-app-starters    文件:WebsocketSinkServerHandler.java   
public WebsocketSinkServerHandler(TraceRepository websocketTraceRepository,
                                  WebsocketSinkProperties properties,
                                  boolean traceEnabled) {

    this.websocketTraceRepository = websocketTraceRepository;
    this.properties = properties;
    this.traceEnabled = traceEnabled;
}
项目:contestparser    文件:TraceRepositoryAutoConfigurationTests.java   
@Test
public void skipsIfRepositoryExists() throws Exception {
    AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(
            Config.class, TraceRepositoryAutoConfiguration.class);
    assertThat(context.getBeansOfType(InMemoryTraceRepository.class).size(),
            equalTo(0));
    assertThat(context.getBeansOfType(TraceRepository.class).size(), equalTo(1));
    context.close();
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:TraceRepositoryAutoConfiguration.java   
@ConditionalOnMissingBean(TraceRepository.class)
@Bean
public InMemoryTraceRepository traceRepository() {
    return new InMemoryTraceRepository();
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:TraceEndpoint.java   
/**
 * Create a new {@link TraceEndpoint} instance.
 * @param repository the trace repository
 */
public TraceEndpoint(TraceRepository repository) {
    super("trace");
    Assert.notNull(repository, "Repository must not be null");
    this.repository = repository;
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:TraceWebFilterAutoConfigurationTests.java   
@Bean
public TestWebRequestTraceFilter testWebRequestTraceFilter(
        TraceRepository repository, TraceProperties properties) {
    return new TestWebRequestTraceFilter(repository, properties);
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:TraceWebFilterAutoConfigurationTests.java   
TestWebRequestTraceFilter(TraceRepository repository,
        TraceProperties properties) {
    super(repository, properties);
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:TraceRepositoryAutoConfigurationTests.java   
@Test
public void skipsIfRepositoryExists() throws Exception {
    AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(
            Config.class, TraceRepositoryAutoConfiguration.class);
    assertThat(context.getBeansOfType(InMemoryTraceRepository.class)).isEmpty();
    assertThat(context.getBeansOfType(TraceRepository.class)).hasSize(1);
    context.close();
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:TraceRepositoryAutoConfigurationTests.java   
@Bean
public TraceRepository traceRepository() {
    return mock(TraceRepository.class);
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:TraceEndpointTests.java   
@Bean
public TraceEndpoint endpoint() {
    TraceRepository repository = new InMemoryTraceRepository();
    repository.add(Collections.<String, Object>singletonMap("a", "b"));
    return new TraceEndpoint(repository);
}
项目:spring-boot-concourse    文件:TraceRepositoryAutoConfiguration.java   
@ConditionalOnMissingBean(TraceRepository.class)
@Bean
public InMemoryTraceRepository traceRepository() {
    return new InMemoryTraceRepository();
}
项目:spring-boot-concourse    文件:TraceEndpoint.java   
/**
 * Create a new {@link TraceEndpoint} instance.
 * @param repository the trace repository
 */
public TraceEndpoint(TraceRepository repository) {
    super("trace");
    Assert.notNull(repository, "Repository must not be null");
    this.repository = repository;
}
项目:spring-boot-concourse    文件:TraceRepositoryAutoConfigurationTests.java   
@Bean
public TraceRepository traceRepository() {
    return mock(TraceRepository.class);
}
项目:spring-boot-concourse    文件:TraceEndpointTests.java   
@Bean
public TraceEndpoint endpoint() {
    TraceRepository repository = new InMemoryTraceRepository();
    repository.add(Collections.<String, Object>singletonMap("a", "b"));
    return new TraceEndpoint(repository);
}
项目:spring-cloud-stream-app-starters    文件:WebsocketSinkServerInitializer.java   
public WebsocketSinkServerInitializer(TraceRepository traceRepository) {
    this.traceRepository = traceRepository;
}
项目:spring-cloud-stream-app-starters    文件:WebsocketSinkTraceEndpoint.java   
public WebsocketSinkTraceEndpoint(TraceRepository repository) {
    super("websocketsinktrace");
    this.repository = repository;
}
项目:contestparser    文件:TraceRepositoryAutoConfiguration.java   
@ConditionalOnMissingBean(TraceRepository.class)
@Bean
public InMemoryTraceRepository traceRepository() {
    return new InMemoryTraceRepository();
}
项目:contestparser    文件:TraceEndpoint.java   
/**
 * Create a new {@link TraceEndpoint} instance.
 * @param repository the trace repository
 */
public TraceEndpoint(TraceRepository repository) {
    super("trace");
    Assert.notNull(repository, "Repository must not be null");
    this.repository = repository;
}
项目:contestparser    文件:TraceRepositoryAutoConfigurationTests.java   
@Bean
public TraceRepository traceRepository() {
    return mock(TraceRepository.class);
}
项目:contestparser    文件:TraceEndpointTests.java   
@Bean
public TraceEndpoint endpoint() {
    TraceRepository repository = new InMemoryTraceRepository();
    repository.add(Collections.<String, Object>singletonMap("a", "b"));
    return new TraceEndpoint(repository);
}