Class AspectsAutoConfiguration
java.lang.Object
com.netflix.genie.web.spring.autoconfigure.aspects.AspectsAutoConfiguration
@Configuration
@EnableConfigurationProperties(DataServiceRetryProperties.class)
@EnableAspectJAutoProxy
public class AspectsAutoConfiguration
extends Object
Auto configuration for aspects that should be applied to a running Genie server instance.
- Since:
- 4.0.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetDataServiceRetryAspect
(DataServiceRetryProperties retryProperties) An aspect for retrying data layer API calls.healthCheckMetricsAspect
(io.micrometer.core.instrument.MeterRegistry meterRegistry) An aspect for collecting metrics for health checks.A bean that defines pointcuts for various layers of the Genie system.
-
Constructor Details
-
AspectsAutoConfiguration
public AspectsAutoConfiguration()
-
-
Method Details
-
getDataServiceRetryAspect
@Bean @ConditionalOnMissingBean(DataServiceRetryAspect.class) public DataServiceRetryAspect getDataServiceRetryAspect(DataServiceRetryProperties retryProperties) An aspect for retrying data layer API calls.- Parameters:
retryProperties
- The properties a user can configure for this aspect- Returns:
- A
DataServiceRetryAspect
instance
-
healthCheckMetricsAspect
@Bean @ConditionalOnMissingBean(HealthCheckMetricsAspect.class) public HealthCheckMetricsAspect healthCheckMetricsAspect(io.micrometer.core.instrument.MeterRegistry meterRegistry) An aspect for collecting metrics for health checks.- Parameters:
meterRegistry
- The metrics repository to use- Returns:
- The instance of
HealthCheckMetricsAspect
-
systemArchitecture
@Bean @ConditionalOnMissingBean(SystemArchitecture.class) public SystemArchitecture systemArchitecture()A bean that defines pointcuts for various layers of the Genie system.- Returns:
- A
SystemArchitecture
instance
-