Class ChaosMonkeyConfiguration
- java.lang.Object
-
- de.codecentric.spring.boot.chaos.monkey.configuration.ChaosMonkeyConfiguration
-
@Configuration @Profile("chaos-monkey") @EnableConfigurationProperties({ChaosMonkeyProperties.class,AssaultProperties.class,WatcherProperties.class}) @EnableScheduling public class ChaosMonkeyConfiguration extends Object- Author:
- Benjamin Wilms
-
-
Constructor Summary
Constructors Constructor Description ChaosMonkeyConfiguration(ChaosMonkeyProperties chaosMonkeyProperties, WatcherProperties watcherProperties, AssaultProperties assaultProperties)
-
Method Summary
-
-
-
Constructor Detail
-
ChaosMonkeyConfiguration
public ChaosMonkeyConfiguration(ChaosMonkeyProperties chaosMonkeyProperties, WatcherProperties watcherProperties, AssaultProperties assaultProperties)
-
-
Method Detail
-
metrics
@Bean @ConditionalOnClass(name="io.micrometer.core.instrument.MeterRegistry") public Metrics metrics()
-
publisher
@Bean public MetricEventPublisher publisher()
-
settings
@Bean public ChaosMonkeySettings settings()
-
latencyAssault
@Bean public LatencyAssault latencyAssault()
-
exceptionAssault
@Bean public ExceptionAssault exceptionAssault()
-
killAppAssault
@Bean public KillAppAssault killAppAssault()
-
memoryAssault
@Bean public MemoryAssault memoryAssault()
-
chaosMonkeyRequestScope
@Bean public ChaosMonkeyRequestScope chaosMonkeyRequestScope(List<ChaosMonkeyRequestAssault> chaosMonkeyAssaults, List<ChaosMonkeyAssault> allAssaults)
-
scheduler
@Bean public ChaosMonkeyScheduler scheduler(@Nullable org.springframework.scheduling.TaskScheduler scheduler, ChaosMonkeyRuntimeScope runtimeScope)
-
chaosMonkeyRuntimeScope
@Bean public ChaosMonkeyRuntimeScope chaosMonkeyRuntimeScope(List<ChaosMonkeyRuntimeAssault> chaosMonkeyAssaults)
-
controllerAspect
@Bean @DependsOn("chaosMonkeyRequestScope") public SpringControllerAspect controllerAspect(ChaosMonkeyRequestScope chaosMonkeyRequestScope)
-
restControllerAspect
@Bean @DependsOn("chaosMonkeyRequestScope") public SpringRestControllerAspect restControllerAspect(ChaosMonkeyRequestScope chaosMonkeyRequestScope)
-
serviceAspect
@Bean @DependsOn("chaosMonkeyRequestScope") public SpringServiceAspect serviceAspect(ChaosMonkeyRequestScope chaosMonkeyRequestScope)
-
componentAspect
@Bean @DependsOn("chaosMonkeyRequestScope") public SpringComponentAspect componentAspect(ChaosMonkeyRequestScope chaosMonkeyRequestScope)
-
repositoryAspect
@Bean @DependsOn("chaosMonkeyRequestScope") @ConditionalOnClass(name="org.springframework.data.repository.CrudRepository") public SpringRepositoryAspect repositoryAspect(ChaosMonkeyRequestScope chaosMonkeyRequestScope)
-
chaosMonkeyRestEndpoint
@Bean @ConditionalOnMissingBean @ConditionalOnEnabledEndpoint public ChaosMonkeyRestEndpoint chaosMonkeyRestEndpoint(ChaosMonkeyRuntimeScope runtimeScope, ChaosMonkeyScheduler scheduler)
-
chaosMonkeyJmxEndpoint
@Bean @ConditionalOnMissingBean @ConditionalOnEnabledEndpoint public ChaosMonkeyJmxEndpoint chaosMonkeyJmxEndpoint()
-
-