Java Code Examples for org.springframework.boot.actuate.metrics.CounterService

The following examples show how to use org.springframework.boot.actuate.metrics.CounterService. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
@Bean
@ConditionalOnMissingBean({ LookoutSpringBootMetricsImpl.class, CounterService.class,
        GaugeService.class })
public LookoutSpringBootMetricsImpl lookoutMetricServices(Registry lookoutMetricRegistry) {
    logger.info("Spring Boot Metrics binding to SOFALookout Implementation!");
    return new LookoutSpringBootMetricsImpl(lookoutMetricRegistry);
}
 
Example 2
Source Project: jigsaw-payment   Source File: TimerAspect.java    License: Apache License 2.0 5 votes vote down vote up
@Autowired
public TimerAspect(GaugeService gaugeService,
		CounterService counterService, ObjectMapper mapper) {
	this.counterService = counterService;
	this.gaugeService = gaugeService;
	this.mapper = mapper;
}
 
Example 3
Source Project: fullstop   Source File: ViolationJpaPersister.java    License: Apache License 2.0 5 votes vote down vote up
public ViolationJpaPersister(final EventBus eventBus, final ViolationRepository violationRepository,
                             final ViolationTypeRepository violationTypeRepository,
                             final CounterService counterService, final WhitelistRules whitelistRules,
                             final ApplicationVersionService applicationVersionService) {
    super(eventBus);
    this.violationRepository = violationRepository;
    this.violationTypeRepository = violationTypeRepository;
    this.counterService = counterService;
    this.whitelistRules = whitelistRules;
    this.applicationVersionService = applicationVersionService;
}
 
Example 4
@Autowired
GreetingController(TPSHealth health,CounterService counterService, GaugeService gaugeService){
	this.health = health;
	this.counterService = counterService;
	this.gaugeService = gaugeService;
}
 
Example 5
Source Project: jigsaw-payment   Source File: TimerAspect.java    License: Apache License 2.0 4 votes vote down vote up
public ExecutionTimer(GaugeService gaugeService,
		CounterService counterService, String name, Logger logger) {
	this.name = name;
	this.logger = logger;
	this.histogram = new Histogram();
}
 
Example 6
Source Project: jigsaw-payment   Source File: TimerAutoConfiguration.java    License: Apache License 2.0 4 votes vote down vote up
@Bean
public TimerAspect timerAspect(GaugeService gaugeService,
		CounterService counterService, ObjectMapper mapper) {
	return new TimerAspect(gaugeService, counterService, mapper);
}
 
Example 7
Source Project: jigsaw-payment   Source File: TestConfig.java    License: Apache License 2.0 4 votes vote down vote up
@Bean
@Primary
public CounterService counterService() {
	return Mockito.mock(CounterService.class);
}
 
Example 8
Source Project: Mastering-Spring-Cloud   Source File: PersonCounterService.java    License: MIT License 4 votes vote down vote up
@Autowired
public PersonCounterService(CounterService counterService) {
    this.counterService = counterService;
}
 
Example 9
Source Project: Mastering-Spring-Cloud   Source File: PersonCounterService.java    License: MIT License 4 votes vote down vote up
@Autowired
public PersonCounterService(CounterService counterService) {
    this.counterService = counterService;
}
 
Example 10
Source Project: elastic-rabbitmq   Source File: ESMessageListener.java    License: MIT License 4 votes vote down vote up
public ESMessageListener(ConfigurableApplicationContext context) {
    this.counterService = context.getBean("counterService", CounterService.class);
    this.gaugeService = context.getBean("gaugeService", GaugeService.class);
    this.context = context;
    //handlerManager.initHandler(context);
}
 
Example 11
@Autowired
GreetingController(TPSHealth health,CounterService counterService, GaugeService gaugeService){
	this.health = health;
	this.counterService = counterService;
	this.gaugeService = gaugeService;
}
 
Example 12
Source Project: Spring-Microservices   Source File: Application.java    License: MIT License 4 votes vote down vote up
@Autowired
GreetingController(TPSHealth health,CounterService counterService, GaugeService gaugeService){
	this.health = health;
	this.counterService = counterService;
	this.gaugeService = gaugeService;
}
 
Example 13
Source Project: building-microservices   Source File: ExampleService.java    License: Apache License 2.0 4 votes vote down vote up
public ExampleService(CounterService counterService, GaugeService gaugeService) {
	this.counterService = counterService;
	this.gaugeService = gaugeService;
}
 
Example 14
Source Project: spring-boot-samples   Source File: GithubClient.java    License: Apache License 2.0 4 votes vote down vote up
public GithubClient(CounterService counterService, RestTemplateBuilder restTemplateBuilder,
		CfpProperties properties) {
	this.counterService = counterService;
	this.restTemplate = restTemplateBuilder.additionalCustomizers(rt ->
			rt.getInterceptors().add(new GithubAppTokenInterceptor(properties.getGithub().getToken()))).build();
}
 
Example 15
Source Project: fullstop   Source File: EventBusViolationSink.java    License: Apache License 2.0 4 votes vote down vote up
public EventBusViolationSink(final EventBus eventBus, final CounterService counterService) {
    this.eventBus = eventBus;
    this.counterService = counterService;
}
 
Example 16
Source Project: tutorials   Source File: LoginServiceImpl.java    License: MIT License 4 votes vote down vote up
public LoginServiceImpl(CounterService counterService) {
    this.counterService = counterService;
}