Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
discovery
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
谢捷峰
discovery
Commits
daff8b55
Commit
daff8b55
authored
Jun 29, 2018
by
Nepxion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化类结构
parent
09f5e762
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
6 deletions
+12
-6
discovery-plugin-framework-consul/src/main/java/com/nepxion/discovery/plugin/framework/adapter/ConsulAdapter.java
+2
-1
discovery-plugin-framework-consul/src/main/java/com/nepxion/discovery/plugin/framework/constant/ConsulConstant.java
+2
-1
discovery-plugin-framework-eureka/src/main/java/com/nepxion/discovery/plugin/framework/adapter/EurekaAdapter.java
+2
-1
discovery-plugin-framework-eureka/src/main/java/com/nepxion/discovery/plugin/framework/constant/EurekaConstant.java
+2
-1
discovery-plugin-framework-zookeeper/src/main/java/com/nepxion/discovery/plugin/framework/adapter/ZookeeperAdapter.java
+2
-1
discovery-plugin-framework-zookeeper/src/main/java/com/nepxion/discovery/plugin/framework/constant/ZookeeperConstant.java
+2
-1
No files found.
discovery-plugin-framework-consul/src/main/java/com/nepxion/discovery/plugin/framework/adapter/ConsulAdapter.java
View file @
daff8b55
...
@@ -34,6 +34,6 @@ public class ConsulAdapter implements PluginAdapter {
...
@@ -34,6 +34,6 @@ public class ConsulAdapter implements PluginAdapter {
@Override
@Override
public
String
getVersion
()
{
public
String
getVersion
()
{
return
environment
.
getProperty
(
ConsulConstant
.
CONSUL_
METADATA_VERSION
);
return
environment
.
getProperty
(
ConsulConstant
.
METADATA_VERSION
);
}
}
}
}
\ No newline at end of file
discovery-plugin-framework-consul/src/main/java/com/nepxion/discovery/plugin/framework/constant/ConsulConstant.java
View file @
daff8b55
...
@@ -10,5 +10,5 @@ package com.nepxion.discovery.plugin.framework.constant;
...
@@ -10,5 +10,5 @@ package com.nepxion.discovery.plugin.framework.constant;
*/
*/
public
class
ConsulConstant
{
public
class
ConsulConstant
{
public
static
final
String
CONSUL_
METADATA_VERSION
=
"spring.cloud.consul.discovery.tags.version"
;
public
static
final
String
METADATA_VERSION
=
"spring.cloud.consul.discovery.tags.version"
;
}
}
\ No newline at end of file
discovery-plugin-framework-eureka/src/main/java/com/nepxion/discovery/plugin/framework/adapter/EurekaAdapter.java
View file @
daff8b55
...
@@ -34,6 +34,6 @@ public class EurekaAdapter implements PluginAdapter {
...
@@ -34,6 +34,6 @@ public class EurekaAdapter implements PluginAdapter {
@Override
@Override
public
String
getVersion
()
{
public
String
getVersion
()
{
return
environment
.
getProperty
(
EurekaConstant
.
EUREKA_
METADATA_VERSION
);
return
environment
.
getProperty
(
EurekaConstant
.
METADATA_VERSION
);
}
}
}
}
\ No newline at end of file
discovery-plugin-framework-eureka/src/main/java/com/nepxion/discovery/plugin/framework/constant/EurekaConstant.java
View file @
daff8b55
...
@@ -10,5 +10,5 @@ package com.nepxion.discovery.plugin.framework.constant;
...
@@ -10,5 +10,5 @@ package com.nepxion.discovery.plugin.framework.constant;
*/
*/
public
class
EurekaConstant
{
public
class
EurekaConstant
{
public
static
final
String
EUREKA_
METADATA_VERSION
=
"eureka.instance.metadataMap.version"
;
public
static
final
String
METADATA_VERSION
=
"eureka.instance.metadataMap.version"
;
}
}
\ No newline at end of file
discovery-plugin-framework-zookeeper/src/main/java/com/nepxion/discovery/plugin/framework/adapter/ZookeeperAdapter.java
View file @
daff8b55
...
@@ -34,6 +34,6 @@ public class ZookeeperAdapter implements PluginAdapter {
...
@@ -34,6 +34,6 @@ public class ZookeeperAdapter implements PluginAdapter {
@Override
@Override
public
String
getVersion
()
{
public
String
getVersion
()
{
return
environment
.
getProperty
(
ZookeeperConstant
.
ZOOKEEPER_
METADATA_VERSION
);
return
environment
.
getProperty
(
ZookeeperConstant
.
METADATA_VERSION
);
}
}
}
}
\ No newline at end of file
discovery-plugin-framework-zookeeper/src/main/java/com/nepxion/discovery/plugin/framework/constant/ZookeeperConstant.java
View file @
daff8b55
...
@@ -10,5 +10,5 @@ package com.nepxion.discovery.plugin.framework.constant;
...
@@ -10,5 +10,5 @@ package com.nepxion.discovery.plugin.framework.constant;
*/
*/
public
class
ZookeeperConstant
{
public
class
ZookeeperConstant
{
public
static
final
String
ZOOKEEPER_
METADATA_VERSION
=
"spring.cloud.zookeeper.discovery.metadata.version"
;
public
static
final
String
METADATA_VERSION
=
"spring.cloud.zookeeper.discovery.metadata.version"
;
}
}
\ No newline at end of file
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