下面列出了怎么用org.springframework.boot.actuate.metrics.CounterService的API类实例代码及写法,或者点击链接到github查看源代码。
@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);
}
@Autowired
public TimerAspect(GaugeService gaugeService,
CounterService counterService, ObjectMapper mapper) {
this.counterService = counterService;
this.gaugeService = gaugeService;
this.mapper = mapper;
}
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;
}
@Autowired
GreetingController(TPSHealth health,CounterService counterService, GaugeService gaugeService){
this.health = health;
this.counterService = counterService;
this.gaugeService = gaugeService;
}
public ExecutionTimer(GaugeService gaugeService,
CounterService counterService, String name, Logger logger) {
this.name = name;
this.logger = logger;
this.histogram = new Histogram();
}
@Bean
public TimerAspect timerAspect(GaugeService gaugeService,
CounterService counterService, ObjectMapper mapper) {
return new TimerAspect(gaugeService, counterService, mapper);
}
@Bean
@Primary
public CounterService counterService() {
return Mockito.mock(CounterService.class);
}
@Autowired
public PersonCounterService(CounterService counterService) {
this.counterService = counterService;
}
@Autowired
public PersonCounterService(CounterService counterService) {
this.counterService = counterService;
}
public ESMessageListener(ConfigurableApplicationContext context) {
this.counterService = context.getBean("counterService", CounterService.class);
this.gaugeService = context.getBean("gaugeService", GaugeService.class);
this.context = context;
//handlerManager.initHandler(context);
}
@Autowired
GreetingController(TPSHealth health,CounterService counterService, GaugeService gaugeService){
this.health = health;
this.counterService = counterService;
this.gaugeService = gaugeService;
}
@Autowired
GreetingController(TPSHealth health,CounterService counterService, GaugeService gaugeService){
this.health = health;
this.counterService = counterService;
this.gaugeService = gaugeService;
}
public ExampleService(CounterService counterService, GaugeService gaugeService) {
this.counterService = counterService;
this.gaugeService = gaugeService;
}
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();
}
public EventBusViolationSink(final EventBus eventBus, final CounterService counterService) {
this.eventBus = eventBus;
this.counterService = counterService;
}
public LoginServiceImpl(CounterService counterService) {
this.counterService = counterService;
}