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
46cf840e
Commit
46cf840e
authored
Oct 08, 2014
by
Spencer Gibb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added ipAddress to ServiceInstance
parent
3f96f3ae
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
0 deletions
+11
-0
ServiceInstance.java
...ava/org/springframework/cloud/client/ServiceInstance.java
+1
-0
EurekaDiscoverClient.java
...g/springframework/cloud/netflix/EurekaDiscoverClient.java
+5
-0
RibbonLoadBalancerClient.java
...mework/cloud/netflix/ribbon/RibbonLoadBalancerClient.java
+5
-0
No files found.
spring-cloud-netflix-core/src/main/java/org/springframework/cloud/client/ServiceInstance.java
View file @
46cf840e
...
...
@@ -8,5 +8,6 @@ package org.springframework.cloud.client;
public
interface
ServiceInstance
{
public
String
getServiceId
();
public
String
getHost
();
public
String
getIpAddress
();
public
int
getPort
();
}
spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/EurekaDiscoverClient.java
View file @
46cf840e
...
...
@@ -27,6 +27,11 @@ public class EurekaDiscoverClient implements DiscoveryClient {
}
@Override
public
String
getIpAddress
()
{
return
config
.
getIpAddress
();
}
@Override
public
int
getPort
()
{
return
config
.
getNonSecurePort
();
}
...
...
spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/ribbon/RibbonLoadBalancerClient.java
View file @
46cf840e
...
...
@@ -45,6 +45,11 @@ public class RibbonLoadBalancerClient implements LoadBalancerClient {
}
@Override
public
String
getIpAddress
()
{
return
null
;
//TODO: ribbon doesn't supply ip
}
@Override
public
int
getPort
()
{
return
server
.
getPort
();
}
...
...
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