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
8957a403
Commit
8957a403
authored
Nov 30, 2015
by
alexVengrovsk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update InstanceRegistry.java
parent
11298720
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
InstanceRegistry.java
...amework/cloud/netflix/eureka/server/InstanceRegistry.java
+12
-6
No files found.
spring-cloud-netflix-eureka-server/src/main/java/org/springframework/cloud/netflix/eureka/server/InstanceRegistry.java
View file @
8957a403
...
@@ -81,8 +81,10 @@ public class InstanceRegistry extends PeerAwareInstanceRegistryImpl implements A
...
@@ -81,8 +81,10 @@ public class InstanceRegistry extends PeerAwareInstanceRegistryImpl implements A
@Override
@Override
public
void
register
(
InstanceInfo
info
,
int
leaseDuration
,
boolean
isReplication
)
{
public
void
register
(
InstanceInfo
info
,
int
leaseDuration
,
boolean
isReplication
)
{
log
.
debug
(
"register "
+
info
.
getAppName
()
+
", vip "
+
info
.
getVIPAddress
()
if
(
log
.
isDebugEnabled
())
{
+
", leaseDuration "
+
leaseDuration
+
", isReplication "
+
isReplication
);
log
.
debug
(
"register "
+
info
.
getAppName
()
+
", vip "
+
info
.
getVIPAddress
()
+
", leaseDuration "
+
leaseDuration
+
", isReplication "
+
isReplication
);
}
// TODO: what to publish from info (whole object?)
// TODO: what to publish from info (whole object?)
this
.
ctxt
.
publishEvent
(
new
EurekaInstanceRegisteredEvent
(
this
,
info
,
this
.
ctxt
.
publishEvent
(
new
EurekaInstanceRegisteredEvent
(
this
,
info
,
leaseDuration
,
isReplication
));
leaseDuration
,
isReplication
));
...
@@ -92,8 +94,10 @@ public class InstanceRegistry extends PeerAwareInstanceRegistryImpl implements A
...
@@ -92,8 +94,10 @@ public class InstanceRegistry extends PeerAwareInstanceRegistryImpl implements A
@Override
@Override
public
boolean
cancel
(
String
appName
,
String
serverId
,
boolean
isReplication
)
{
public
boolean
cancel
(
String
appName
,
String
serverId
,
boolean
isReplication
)
{
log
.
debug
(
"cancel "
+
appName
+
" serverId "
+
serverId
+
", isReplication {}"
if
(
log
.
isDebugEnabled
())
{
+
isReplication
);
log
.
debug
(
"cancel "
+
appName
+
" serverId "
+
serverId
+
", isReplication {}"
+
isReplication
);
}
this
.
ctxt
.
publishEvent
(
new
EurekaInstanceCanceledEvent
(
this
,
appName
,
serverId
,
this
.
ctxt
.
publishEvent
(
new
EurekaInstanceCanceledEvent
(
this
,
appName
,
serverId
,
isReplication
));
isReplication
));
...
@@ -103,8 +107,10 @@ public class InstanceRegistry extends PeerAwareInstanceRegistryImpl implements A
...
@@ -103,8 +107,10 @@ public class InstanceRegistry extends PeerAwareInstanceRegistryImpl implements A
@Override
@Override
public
boolean
renew
(
final
String
appName
,
final
String
serverId
,
public
boolean
renew
(
final
String
appName
,
final
String
serverId
,
boolean
isReplication
)
{
boolean
isReplication
)
{
log
.
debug
(
"renew "
+
appName
+
" serverId "
+
serverId
+
", isReplication {}"
if
(
log
.
isDebugEnabled
())
{
+
isReplication
);
log
.
debug
(
"renew "
+
appName
+
" serverId "
+
serverId
+
", isReplication {}"
+
isReplication
);
}
List
<
Application
>
applications
=
getSortedApplications
();
List
<
Application
>
applications
=
getSortedApplications
();
for
(
Application
input
:
applications
)
{
for
(
Application
input
:
applications
)
{
if
(
input
.
getName
().
equals
(
appName
))
{
if
(
input
.
getName
().
equals
(
appName
))
{
...
...
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