org.springframework.boot.actuate.autoconfigure.endpoint.condition.ConditionalOnEnabledEndpoint Java Examples
The following examples show how to use
org.springframework.boot.actuate.autoconfigure.endpoint.condition.ConditionalOnEnabledEndpoint.
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: ApiConfiguration.java From open-cloud with MIT License | 5 votes |
/** * 网关bus端点 * * @param context * @param bus * @return */ @Bean @ConditionalOnEnabledEndpoint @ConditionalOnClass({Endpoint.class}) public ApiEndpoint apiEndpoint(ApplicationContext context, BusProperties bus) { ApiEndpoint endpoint = new ApiEndpoint(context, bus.getId()); log.info("ApiEndpoint [{}]", endpoint); return endpoint; }
Example #2
Source File: CircuitBreakersEndpointAutoConfiguration.java From failsafe-actuator with MIT License | 5 votes |
@Bean @ConditionalOnMissingBean @ConditionalOnEnabledEndpoint public CircuitBreakersEndpoint circuitBreakersEndpoint( @SuppressWarnings("SpringJavaInjectionPointsAutowiringInspection") @Autowired(required = false) @Nullable final Map<String, CircuitBreaker> breakers) { return new CircuitBreakersEndpoint(breakers == null ? Collections.emptyMap() : breakers); }
Example #3
Source File: QuickFixJClientEndpointAutoConfiguration.java From quickfixj-spring-boot-starter with Apache License 2.0 | 5 votes |
@Bean @ConditionalOnBean(name = { "clientInitiator", "clientSessionSettings" }) @ConditionalOnClass({ Initiator.class, SessionSettings.class }) @ConditionalOnMissingBean @ConditionalOnEnabledEndpoint public QuickFixJClientEndpoint quickfixjClientEndpoint(Initiator clientInitiator, SessionSettings clientSessionSettings) { return new QuickFixJClientEndpoint(clientInitiator, clientSessionSettings); }
Example #4
Source File: QuickFixJServerEndpointAutoConfiguration.java From quickfixj-spring-boot-starter with Apache License 2.0 | 5 votes |
@Bean @ConditionalOnBean(name = { "serverAcceptor", "serverSessionSettings" }) @ConditionalOnClass({ Acceptor.class, SessionSettings.class }) @ConditionalOnMissingBean @ConditionalOnEnabledEndpoint public QuickFixJServerEndpoint quickfixjServerEndpoint(Acceptor serverAcceptor, SessionSettings serverSessionSettings) { return new QuickFixJServerEndpoint(serverAcceptor, serverSessionSettings); }
Example #5
Source File: ChaosMonkeyConfiguration.java From chaos-monkey-spring-boot with Apache License 2.0 | 5 votes |
@Bean @ConditionalOnMissingBean @ConditionalOnEnabledEndpoint public ChaosMonkeyRestEndpoint chaosMonkeyRestEndpoint( ChaosMonkeyRuntimeScope runtimeScope, ChaosMonkeyScheduler scheduler) { return new ChaosMonkeyRestEndpoint(settings(), runtimeScope, scheduler); }
Example #6
Source File: NacosConfigEndpointAutoConfiguration.java From spring-cloud-alibaba with Apache License 2.0 | 5 votes |
@ConditionalOnMissingBean @ConditionalOnEnabledEndpoint @Bean public NacosConfigEndpoint nacosConfigEndpoint() { return new NacosConfigEndpoint(nacosConfigManager.getNacosConfigProperties(), nacosRefreshHistory); }
Example #7
Source File: NacosDiscoveryEndpointAutoConfiguration.java From spring-cloud-alibaba with Apache License 2.0 | 5 votes |
@Bean @ConditionalOnMissingBean @ConditionalOnEnabledEndpoint public NacosDiscoveryEndpoint nacosDiscoveryEndpoint( NacosDiscoveryProperties nacosDiscoveryProperties) { return new NacosDiscoveryEndpoint(nacosDiscoveryProperties); }
Example #8
Source File: EurekaMgmtEndpointAutoConfiguration.java From summerframework with Apache License 2.0 | 5 votes |
@Bean @ConditionalOnEnabledEndpoint public EurekaMgmtEndpoint serviceDiscoveryMgmtEndpoint(ServiceRegistry serviceRegistry, Environment environment) { EurekaMgmtEndpoint endpoint = new EurekaMgmtEndpoint(serviceRegistry); endpoint.setRegistration(registration); JmxEndpointProperties r; return endpoint; }
Example #9
Source File: GatewayConfiguration.java From open-cloud with MIT License | 5 votes |
/** * 自定义网关监控端点 * * @param context * @param bus * @return */ @Bean @ConditionalOnEnabledEndpoint @ConditionalOnClass({Endpoint.class}) public ApiEndpoint apiEndpoint(ApplicationContext context, BusProperties bus) { ApiEndpoint endpoint = new ApiEndpoint(context, bus.getId()); log.info("ApiEndpoint [{}]", endpoint); return endpoint; }
Example #10
Source File: DubboMetadataEndpointAutoConfiguration.java From spring-cloud-alibaba with Apache License 2.0 | 4 votes |
@Bean @ConditionalOnMissingBean @ConditionalOnEnabledEndpoint public DubboRestMetadataEndpoint dubboRestMetadataEndpoint() { return new DubboRestMetadataEndpoint(); }
Example #11
Source File: NacosDiscoveryEndpointsAutoConfiguration.java From nacos-spring-boot-project with Apache License 2.0 | 4 votes |
@Bean @ConditionalOnMissingBean @ConditionalOnEnabledEndpoint public NacosDiscoveryEndpoint nacosDiscoveryEndpoint() { return new NacosDiscoveryEndpoint(); }
Example #12
Source File: SentinelEndpointAutoConfiguration.java From spring-cloud-alibaba with Apache License 2.0 | 4 votes |
@Bean @ConditionalOnMissingBean @ConditionalOnEnabledEndpoint public SentinelEndpoint sentinelEndPoint(SentinelProperties sentinelProperties) { return new SentinelEndpoint(sentinelProperties); }
Example #13
Source File: NacosConfigEndpointAutoConfiguration.java From nacos-spring-boot-project with Apache License 2.0 | 4 votes |
@Bean @ConditionalOnMissingBean @ConditionalOnEnabledEndpoint public NacosConfigEndpoint nacosEndpoint() { return new NacosConfigEndpoint(); }
Example #14
Source File: SpringBootActuatorApplication.java From springboot-learning-experience with Apache License 2.0 | 4 votes |
@Bean @ConditionalOnMissingBean @ConditionalOnEnabledEndpoint public MyEndPoint myEndPoint() { return new MyEndPoint(); }
Example #15
Source File: ChaosMonkeyConfiguration.java From chaos-monkey-spring-boot with Apache License 2.0 | 4 votes |
@Bean @ConditionalOnMissingBean @ConditionalOnEnabledEndpoint public ChaosMonkeyJmxEndpoint chaosMonkeyJmxEndpoint() { return new ChaosMonkeyJmxEndpoint(settings()); }
Example #16
Source File: CompatibleSpringBoot2AutoConfiguration.java From sofa-ark with Apache License 2.0 | 4 votes |
@Bean @ConditionalOnEnabledEndpoint public IntrospectBizEndpoint introspectBizEndpoint() { return new IntrospectBizEndpoint(); }
Example #17
Source File: EndpointAutoConfiguration.java From flowable-engine with Apache License 2.0 | 4 votes |
@Bean @ConditionalOnMissingBean @ConditionalOnEnabledEndpoint public ProcessEngineEndpoint processEngineEndpoint(ProcessEngine engine) { return new ProcessEngineEndpoint(engine); }