Java Code Examples for org.springframework.boot.actuate.autoconfigure.endpoint.condition.ConditionalOnEnabledEndpoint

The following examples show how to use org.springframework.boot.actuate.autoconfigure.endpoint.condition.ConditionalOnEnabledEndpoint. These examples are extracted from open source projects. 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 Project: open-cloud   Source File: GatewayConfiguration.java    License: MIT License 5 votes vote down vote up
/**
 * 自定义网关监控端点
 *
 * @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 Project: open-cloud   Source File: ApiConfiguration.java    License: MIT License 5 votes vote down vote up
/**
 * 网关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 3
@Bean
@ConditionalOnEnabledEndpoint
public EurekaMgmtEndpoint serviceDiscoveryMgmtEndpoint(ServiceRegistry serviceRegistry,
    Environment environment) {
    EurekaMgmtEndpoint endpoint = new EurekaMgmtEndpoint(serviceRegistry);
    endpoint.setRegistration(registration);
    JmxEndpointProperties r;
    return endpoint;
}
 
Example 4
@Bean
@ConditionalOnMissingBean
@ConditionalOnEnabledEndpoint
public NacosDiscoveryEndpoint nacosDiscoveryEndpoint(
		NacosDiscoveryProperties nacosDiscoveryProperties) {
	return new NacosDiscoveryEndpoint(nacosDiscoveryProperties);
}
 
Example 5
@ConditionalOnMissingBean
@ConditionalOnEnabledEndpoint
@Bean
public NacosConfigEndpoint nacosConfigEndpoint() {
	return new NacosConfigEndpoint(nacosConfigManager.getNacosConfigProperties(),
			nacosRefreshHistory);
}
 
Example 6
@Bean
@ConditionalOnMissingBean
@ConditionalOnEnabledEndpoint
public ChaosMonkeyRestEndpoint chaosMonkeyRestEndpoint(
    ChaosMonkeyRuntimeScope runtimeScope, ChaosMonkeyScheduler scheduler) {
  return new ChaosMonkeyRestEndpoint(settings(), runtimeScope, scheduler);
}
 
Example 7
@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 8
@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 9
@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 10
@Bean
@ConditionalOnEnabledEndpoint
public IntrospectBizEndpoint introspectBizEndpoint() {
    return new IntrospectBizEndpoint();
}
 
Example 11
@Bean
@ConditionalOnMissingBean
@ConditionalOnEnabledEndpoint
public MyEndPoint myEndPoint() {
	return new MyEndPoint();
}
 
Example 12
@Bean
@ConditionalOnMissingBean
@ConditionalOnEnabledEndpoint
public NacosConfigEndpoint nacosEndpoint() {
	return new NacosConfigEndpoint();
}
 
Example 13
@Bean
@ConditionalOnMissingBean
@ConditionalOnEnabledEndpoint
public NacosDiscoveryEndpoint nacosDiscoveryEndpoint() {
	return new NacosDiscoveryEndpoint();
}
 
Example 14
@Bean
@ConditionalOnMissingBean
@ConditionalOnEnabledEndpoint
public DubboRestMetadataEndpoint dubboRestMetadataEndpoint() {
	return new DubboRestMetadataEndpoint();
}
 
Example 15
@Bean
@ConditionalOnMissingBean
@ConditionalOnEnabledEndpoint
public SentinelEndpoint sentinelEndPoint(SentinelProperties sentinelProperties) {
	return new SentinelEndpoint(sentinelProperties);
}
 
Example 16
@Bean
@ConditionalOnMissingBean
@ConditionalOnEnabledEndpoint
public ChaosMonkeyJmxEndpoint chaosMonkeyJmxEndpoint() {
  return new ChaosMonkeyJmxEndpoint(settings());
}
 
Example 17
Source Project: flowable-engine   Source File: EndpointAutoConfiguration.java    License: Apache License 2.0 4 votes vote down vote up
@Bean
@ConditionalOnMissingBean
@ConditionalOnEnabledEndpoint
public ProcessEngineEndpoint processEngineEndpoint(ProcessEngine engine) {
    return new ProcessEngineEndpoint(engine);
}