org.springframework.boot.actuate.metrics.CounterService Java Examples
The following examples show how to use
org.springframework.boot.actuate.metrics.CounterService.
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
Source File: MetricsActuatorAutoConfiguration.java From sofa-lookout with Apache License 2.0 | 5 votes |
@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 File: TimerAspect.java From jigsaw-payment with Apache License 2.0 | 5 votes |
@Autowired public TimerAspect(GaugeService gaugeService, CounterService counterService, ObjectMapper mapper) { this.counterService = counterService; this.gaugeService = gaugeService; this.mapper = mapper; }
Example #3
Source File: ViolationJpaPersister.java From fullstop with Apache License 2.0 | 5 votes |
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
Source File: Application.java From Learning-Path-Spring-5-End-to-End-Programming with MIT License | 4 votes |
@Autowired GreetingController(TPSHealth health,CounterService counterService, GaugeService gaugeService){ this.health = health; this.counterService = counterService; this.gaugeService = gaugeService; }
Example #5
Source File: TimerAspect.java From jigsaw-payment with Apache License 2.0 | 4 votes |
public ExecutionTimer(GaugeService gaugeService, CounterService counterService, String name, Logger logger) { this.name = name; this.logger = logger; this.histogram = new Histogram(); }
Example #6
Source File: TimerAutoConfiguration.java From jigsaw-payment with Apache License 2.0 | 4 votes |
@Bean public TimerAspect timerAspect(GaugeService gaugeService, CounterService counterService, ObjectMapper mapper) { return new TimerAspect(gaugeService, counterService, mapper); }
Example #7
Source File: TestConfig.java From jigsaw-payment with Apache License 2.0 | 4 votes |
@Bean @Primary public CounterService counterService() { return Mockito.mock(CounterService.class); }
Example #8
Source File: PersonCounterService.java From Mastering-Spring-Cloud with MIT License | 4 votes |
@Autowired public PersonCounterService(CounterService counterService) { this.counterService = counterService; }
Example #9
Source File: PersonCounterService.java From Mastering-Spring-Cloud with MIT License | 4 votes |
@Autowired public PersonCounterService(CounterService counterService) { this.counterService = counterService; }
Example #10
Source File: ESMessageListener.java From elastic-rabbitmq with MIT License | 4 votes |
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
Source File: Application.java From Microservices-Building-Scalable-Software with MIT License | 4 votes |
@Autowired GreetingController(TPSHealth health,CounterService counterService, GaugeService gaugeService){ this.health = health; this.counterService = counterService; this.gaugeService = gaugeService; }
Example #12
Source File: Application.java From Spring-Microservices with MIT License | 4 votes |
@Autowired GreetingController(TPSHealth health,CounterService counterService, GaugeService gaugeService){ this.health = health; this.counterService = counterService; this.gaugeService = gaugeService; }
Example #13
Source File: ExampleService.java From building-microservices with Apache License 2.0 | 4 votes |
public ExampleService(CounterService counterService, GaugeService gaugeService) { this.counterService = counterService; this.gaugeService = gaugeService; }
Example #14
Source File: GithubClient.java From spring-boot-samples with Apache License 2.0 | 4 votes |
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 File: EventBusViolationSink.java From fullstop with Apache License 2.0 | 4 votes |
public EventBusViolationSink(final EventBus eventBus, final CounterService counterService) { this.eventBus = eventBus; this.counterService = counterService; }
Example #16
Source File: LoginServiceImpl.java From tutorials with MIT License | 4 votes |
public LoginServiceImpl(CounterService counterService) { this.counterService = counterService; }