Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spring-cloud-netflix
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
spring-cloud-netflix
Commits
acfecc38
Commit
acfecc38
authored
Dec 02, 2014
by
Spencer Gibb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
renamed Hystrix and Eureka configurations
parent
3a066323
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
16 additions
and
15 deletions
+16
-15
EnableEurekaClient.java
...ingframework/cloud/netflix/eureka/EnableEurekaClient.java
+1
-1
EurekaDiscoveryClientConfiguration.java
...ud/netflix/eureka/EurekaDiscoveryClientConfiguration.java
+5
-5
EnableHystrix.java
.../springframework/cloud/netflix/hystrix/EnableHystrix.java
+2
-1
HystrixCircuitBreakerConfiguration.java
...d/netflix/hystrix/HystrixCircuitBreakerConfiguration.java
+1
-1
spring.factories
...netflix-core/src/main/resources/META-INF/spring.factories
+3
-3
HystrixConfigurationTests.java
...work/cloud/netflix/hystrix/HystrixConfigurationTests.java
+1
-1
TurbineConfiguration.java
...framework/cloud/netflix/turbine/TurbineConfiguration.java
+3
-3
No files found.
spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/eureka/EnableEurekaClient.java
View file @
acfecc38
...
...
@@ -30,7 +30,7 @@ import org.springframework.context.annotation.Import;
@Target
(
ElementType
.
TYPE
)
@Retention
(
RetentionPolicy
.
RUNTIME
)
@Documented
@Import
(
EurekaClientConfiguration
.
class
)
@Import
(
Eureka
Discovery
ClientConfiguration
.
class
)
@Deprecated
public
@interface
EnableEurekaClient
{
...
...
spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/eureka/EurekaClientConfiguration.java
→
spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/eureka/Eureka
Discovery
ClientConfiguration.java
View file @
acfecc38
...
...
@@ -54,10 +54,10 @@ import java.util.concurrent.atomic.AtomicInteger;
@EnableConfigurationProperties
@ConditionalOnClass
(
EurekaClientConfig
.
class
)
@ConditionalOnExpression
(
"${eureka.client.enabled:true}"
)
public
class
EurekaClientConfiguration
implements
SmartLifecycle
,
Ordered
{
public
class
Eureka
Discovery
ClientConfiguration
implements
SmartLifecycle
,
Ordered
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
EurekaClientConfiguration
.
class
);
.
getLogger
(
Eureka
Discovery
ClientConfiguration
.
class
);
private
AtomicBoolean
running
=
new
AtomicBoolean
(
false
);
...
...
@@ -162,9 +162,9 @@ public class EurekaClientConfiguration implements SmartLifecycle, Ordered {
@Override
public
void
onApplicationEvent
(
EmbeddedServletContainerInitializedEvent
event
)
{
// TODO: take SSL into account when Spring Boot 1.2 is available
EurekaClientConfiguration
.
this
.
port
.
compareAndSet
(
0
,
event
.
getEmbeddedServletContainer
()
.
getPort
());
EurekaClientConfiguration
.
this
.
start
();
Eureka
Discovery
ClientConfiguration
.
this
.
port
.
compareAndSet
(
0
,
event
.
getEmbeddedServletContainer
()
.
getPort
());
Eureka
Discovery
ClientConfiguration
.
this
.
start
();
}
};
}
...
...
spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/hystrix/EnableHystrix.java
View file @
acfecc38
...
...
@@ -25,7 +25,7 @@ import java.lang.annotation.*;
@Target
(
ElementType
.
TYPE
)
@Retention
(
RetentionPolicy
.
RUNTIME
)
@Documented
@Import
(
HystrixConfiguration
.
class
)
@Import
(
HystrixC
ircuitBreakerC
onfiguration
.
class
)
@Deprecated
public
@interface
EnableHystrix
{
}
\ No newline at end of file
spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/hystrix/HystrixConfiguration.java
→
spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/hystrix/HystrixC
ircuitBreakerC
onfiguration.java
View file @
acfecc38
...
...
@@ -46,7 +46,7 @@ import java.util.Set;
* @author Christian Dupuis
*/
@Configuration
public
class
HystrixConfiguration
{
public
class
HystrixC
ircuitBreakerC
onfiguration
{
@Bean
public
HystrixCommandAspect
hystrixCommandAspect
()
{
...
...
spring-cloud-netflix-core/src/main/resources/META-INF/spring.factories
View file @
acfecc38
...
...
@@ -12,7 +12,7 @@ org.springframework.cloud.bootstrap.BootstrapConfiguration=\
org.springframework.cloud.netflix.config.DiscoveryClientConfigServiceBootstrapConfiguration
org.springframework.cloud.client.discovery.EnableDiscoveryClient=\
org.springframework.cloud.netflix.eureka.EurekaClientConfiguration
org.springframework.cloud.netflix.eureka.Eureka
Discovery
ClientConfiguration
org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker=\
org.springframework.cloud.netflix.hystrix.HystrixConfiguration
\ No newline at end of file
org.springframework.cloud.netflix.hystrix.HystrixCircuitBreakerConfiguration
\ No newline at end of file
spring-cloud-netflix-core/src/test/java/org/springframework/cloud/netflix/hystrix/HystrixConfigurationTests.java
View file @
acfecc38
...
...
@@ -26,7 +26,7 @@ public class HystrixConfigurationTests {
@Test
public
void
nonWebAppStartsUp
()
{
new
SpringApplicationBuilder
(
HystrixConfiguration
.
class
).
web
(
false
).
run
().
close
();
new
SpringApplicationBuilder
(
HystrixC
ircuitBreakerC
onfiguration
.
class
).
web
(
false
).
run
().
close
();
}
}
spring-cloud-netflix-turbine/src/main/java/org/springframework/cloud/netflix/turbine/TurbineConfiguration.java
View file @
acfecc38
...
...
@@ -6,7 +6,7 @@ import com.netflix.turbine.plugins.PluginsFactory;
import
com.netflix.turbine.streaming.servlet.TurbineStreamServlet
;
import
org.springframework.boot.context.embedded.ServletRegistrationBean
;
import
org.springframework.boot.context.properties.EnableConfigurationProperties
;
import
org.springframework.cloud.
netflix.eureka.EnableEureka
Client
;
import
org.springframework.cloud.
client.discovery.EnableDiscovery
Client
;
import
org.springframework.context.SmartLifecycle
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
...
...
@@ -17,7 +17,7 @@ import org.springframework.core.Ordered;
*/
@Configuration
@EnableConfigurationProperties
@Enable
Eureka
Client
@Enable
Discovery
Client
public
class
TurbineConfiguration
implements
SmartLifecycle
,
Ordered
{
@Bean
...
...
@@ -49,7 +49,7 @@ public class TurbineConfiguration implements SmartLifecycle, Ordered {
@Override
public
void
start
()
{
//TODO: figure out ordering, so this is already run by EurekaClientConfiguration
//TODO: figure out ordering, so this is already run by Eureka
Discovery
ClientConfiguration
//DiscoveryManager.getInstance().initComponent(instanceConfig, clientConfig);
PluginsFactory
.
setClusterMonitorFactory
(
new
SpringAggregatorFactory
());
PluginsFactory
.
setInstanceDiscovery
(
instanceDiscovery
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment