Browse Source

Add enabled flag

pull/6/head
Dave Syer 10 years ago
parent
commit
d454e42ac9
  1. 27
      pom.xml
  2. 2
      src/main/java/org/springframework/platform/netflix/eureka/EurekaClientConfigBean.java

27
pom.xml

@ -16,6 +16,26 @@ @@ -16,6 +16,26 @@
<version>1.1.5.BUILD-SNAPSHOT</version>
<relativePath /> <!-- lookup parent from repository -->
</parent>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.netflix.eureka</groupId>
<artifactId>eureka-client</artifactId>
<version>1.1.135</version>
</dependency>
<dependency>
<groupId>com.netflix.eureka</groupId>
<artifactId>eureka-client</artifactId>
<version>1.1.135</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.12.6</version>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
@ -29,12 +49,15 @@ @@ -29,12 +49,15 @@
<dependency>
<groupId>com.netflix.eureka</groupId>
<artifactId>eureka-client</artifactId>
<version>1.1.135</version>
</dependency>
<dependency>
<groupId>com.netflix.eureka</groupId>
<artifactId>eureka-client</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.12.6</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>

2
src/main/java/org/springframework/platform/netflix/eureka/EurekaClientConfigBean.java

@ -38,6 +38,8 @@ public class EurekaClientConfigBean implements EurekaClientConfig { @@ -38,6 +38,8 @@ public class EurekaClientConfigBean implements EurekaClientConfig {
public static final String DEFAULT_ZONE = "defaultZone";
private static final int MINUTES = 60;
private boolean enabled = true;
private int registryFetchIntervalSeconds = 30;

Loading…
Cancel
Save