• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java HasFeatures类的典型用法和代码示例

java 3次浏览

本文整理汇总了Java中org.springframework.cloud.client.actuator.HasFeatures的典型用法代码示例。如果您正苦于以下问题:Java HasFeatures类的具体用法?Java HasFeatures怎么用?Java HasFeatures使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

HasFeatures类属于org.springframework.cloud.client.actuator包,在下文中一共展示了HasFeatures类的18个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: beansCreatedNormally

点赞 2

import org.springframework.cloud.client.actuator.HasFeatures; //导入依赖的package包/类
@Test
public void beansCreatedNormally() {
	try (ConfigurableApplicationContext ctxt = init()) {
		assertThat(ctxt.getBean(DiscoveryClientHealthIndicator.class),
				is(notNullValue()));
		assertThat(ctxt.getBean(DiscoveryCompositeHealthIndicator.class),
				is(notNullValue()));
		assertThat(ctxt.getBean(FeaturesEndpoint.class), is(notNullValue()));
		assertThat(ctxt.getBeansOfType(HasFeatures.class).values(),
				not(emptyCollectionOf(HasFeatures.class)));
	}
}
 

开发者ID:spring-cloud,
项目名称:spring-cloud-commons,
代码行数:13,
代码来源:CommonsClientAutoConfigurationTests.java

示例2: disableAll

点赞 2

import org.springframework.cloud.client.actuator.HasFeatures; //导入依赖的package包/类
@Test
public void disableAll() {
	try (ConfigurableApplicationContext ctxt = init("spring.cloud.discovery.enabled=false")) {
		assertBeanNonExistant(ctxt, DiscoveryClientHealthIndicator.class);
		assertBeanNonExistant(ctxt, DiscoveryCompositeHealthIndicator.class);
		assertThat(ctxt.getBean(FeaturesEndpoint.class), is(notNullValue())); // features actuator is independent of discovery
		assertBeanNonExistant(ctxt, HasFeatures.class);
	}
}
 

开发者ID:spring-cloud,
项目名称:spring-cloud-commons,
代码行数:10,
代码来源:CommonsClientAutoConfigurationTests.java

示例3: eurekaServerFeature

点赞 2

import org.springframework.cloud.client.actuator.HasFeatures; //导入依赖的package包/类
@Bean
public HasFeatures eurekaServerFeature() {
	return HasFeatures.namedFeature("Eureka Server",
			EurekaServerAutoConfiguration.class);
}
 

开发者ID:dyc87112,
项目名称:didi-eureka-server,
代码行数:6,
代码来源:EurekaServerAutoConfiguration.java

示例4: retrofitFeature

点赞 2

import org.springframework.cloud.client.actuator.HasFeatures; //导入依赖的package包/类
@Bean
public HasFeatures retrofitFeature() {
	return HasFeatures.namedFeature("Retrofit", Retrofit.class);
}
 

开发者ID:spring-cloud-incubator,
项目名称:spring-cloud-square,
代码行数:5,
代码来源:RetrofitAutoConfiguration.java

示例5: commonsFeatures

点赞 2

import org.springframework.cloud.client.actuator.HasFeatures; //导入依赖的package包/类
@Bean
public HasFeatures commonsFeatures() {
	return HasFeatures.abstractFeatures(DiscoveryClient.class,
			LoadBalancerClient.class);
}
 

开发者ID:spring-cloud,
项目名称:spring-cloud-commons,
代码行数:6,
代码来源:CommonsClientAutoConfiguration.java

示例6: ribbonFeature

点赞 2

import org.springframework.cloud.client.actuator.HasFeatures; //导入依赖的package包/类
@Bean
public HasFeatures ribbonFeature() {
	return HasFeatures.namedFeature("Ribbon", Ribbon.class);
}
 

开发者ID:spring-cloud,
项目名称:spring-cloud-netflix,
代码行数:5,
代码来源:RibbonAutoConfiguration.java

示例7: Feature

点赞 2

import org.springframework.cloud.client.actuator.HasFeatures; //导入依赖的package包/类
@Bean
public HasFeatures Feature() {
	return HasFeatures.namedFeature("Turbine (Stream)",
			TurbineStreamProperties.class);
}
 

开发者ID:spring-cloud,
项目名称:spring-cloud-netflix,
代码行数:6,
代码来源:TurbineStreamConfiguration.java

示例8: zuulFeature

点赞 2

import org.springframework.cloud.client.actuator.HasFeatures; //导入依赖的package包/类
@Override
public HasFeatures zuulFeature() {
	return HasFeatures.namedFeature("Zuul (Discovery)",
			ZuulProxyAutoConfiguration.class);
}
 

开发者ID:spring-cloud,
项目名称:spring-cloud-netflix,
代码行数:6,
代码来源:ZuulProxyAutoConfiguration.java

示例9: zuulFeature

点赞 2

import org.springframework.cloud.client.actuator.HasFeatures; //导入依赖的package包/类
@Bean
public HasFeatures zuulFeature() {
	return HasFeatures.namedFeature("Zuul (Simple)", ZuulServerAutoConfiguration.class);
}
 

开发者ID:spring-cloud,
项目名称:spring-cloud-netflix,
代码行数:5,
代码来源:ZuulServerAutoConfiguration.java

示例10: hystrixStreamQueueFeature

点赞 2

import org.springframework.cloud.client.actuator.HasFeatures; //导入依赖的package包/类
@Bean
public HasFeatures hystrixStreamQueueFeature() {
	return HasFeatures.namedFeature("Hystrix Stream (Queue)",
			HystrixStreamAutoConfiguration.class);
}
 

开发者ID:spring-cloud,
项目名称:spring-cloud-netflix,
代码行数:6,
代码来源:HystrixStreamAutoConfiguration.java

示例11: eurekaFeature

点赞 2

import org.springframework.cloud.client.actuator.HasFeatures; //导入依赖的package包/类
@Bean
public HasFeatures eurekaFeature() {
	return HasFeatures.namedFeature("Eureka Client", EurekaClient.class);
}
 

开发者ID:spring-cloud,
项目名称:spring-cloud-netflix,
代码行数:5,
代码来源:EurekaClientAutoConfiguration.java

示例12: Feature

点赞 2

import org.springframework.cloud.client.actuator.HasFeatures; //导入依赖的package包/类
@Bean
public HasFeatures Feature() {
	return HasFeatures.namedFeature("Turbine (HTTP)", TurbineHttpConfiguration.class);
}
 

开发者ID:spring-cloud,
项目名称:spring-cloud-netflix,
代码行数:5,
代码来源:TurbineHttpConfiguration.java

示例13: Feature

点赞 2

import org.springframework.cloud.client.actuator.HasFeatures; //导入依赖的package包/类
@Bean
public HasFeatures Feature() {
	return HasFeatures.namedFeature("Netflix Sidecar", SidecarConfiguration.class);
}
 

开发者ID:spring-cloud,
项目名称:spring-cloud-netflix,
代码行数:5,
代码来源:SidecarConfiguration.java

示例14: hystrixDashboardFeature

点赞 2

import org.springframework.cloud.client.actuator.HasFeatures; //导入依赖的package包/类
@Bean
public HasFeatures hystrixDashboardFeature() {
	return HasFeatures.namedFeature("Hystrix Dashboard", HystrixDashboardConfiguration.class);
}
 

开发者ID:spring-cloud,
项目名称:spring-cloud-netflix,
代码行数:5,
代码来源:HystrixDashboardConfiguration.java

示例15: hystrixFeature

点赞 2

import org.springframework.cloud.client.actuator.HasFeatures; //导入依赖的package包/类
@Bean
public HasFeatures hystrixFeature() {
	return HasFeatures.namedFeatures(new NamedFeature("Hystrix", HystrixCommandAspect.class));
}
 

开发者ID:spring-cloud,
项目名称:spring-cloud-netflix,
代码行数:5,
代码来源:HystrixCircuitBreakerConfiguration.java

示例16: hystrixStreamFeature

点赞 2

import org.springframework.cloud.client.actuator.HasFeatures; //导入依赖的package包/类
@Bean
public HasFeatures hystrixStreamFeature() {
	return HasFeatures.namedFeature("Hystrix Stream Servlet", HystrixMetricsStreamServlet.class);
}
 

开发者ID:spring-cloud,
项目名称:spring-cloud-netflix,
代码行数:5,
代码来源:HystrixAutoConfiguration.java

示例17: feignFeature

点赞 2

import org.springframework.cloud.client.actuator.HasFeatures; //导入依赖的package包/类
@Bean
public HasFeatures feignFeature() {
	return HasFeatures.namedFeature("Feign", Feign.class);
}
 

开发者ID:spring-cloud,
项目名称:spring-cloud-netflix,
代码行数:5,
代码来源:FeignAutoConfiguration.java

示例18: feature

点赞 1

import org.springframework.cloud.client.actuator.HasFeatures; //导入依赖的package包/类
/**
 * Feature
 * 
 * @return HasFeatures
*/
@Bean
public HasFeatures feature() {
    return HasFeatures.namedFeature("Turbine (HTTP)", TurbineHttpConfiguration.class);
}
 

开发者ID:zhaoxunyong,
项目名称:zxy-dashboard,
代码行数:10,
代码来源:TurbineHttpConfiguration.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)