Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
apollo
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
apollo
Commits
e933a432
Commit
e933a432
authored
Aug 10, 2017
by
liYao
Committed by
GitHub
Aug 10, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cat不应出现在方法名上,去除掉
parent
870b9839
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
NotificationControllerV2.java
...lo/configservice/controller/NotificationControllerV2.java
+4
-4
No files found.
apollo-configservice/src/main/java/com/ctrip/framework/apollo/configservice/controller/NotificationControllerV2.java
View file @
e933a432
...
...
@@ -159,17 +159,17 @@ public class NotificationControllerV2 implements ReleaseMessageListener {
}
deferredResult
.
onTimeout
(()
->
logWatchedKeys
ToMonitor
(
watchedKeys
,
"Apollo.LongPoll.TimeOutKeys"
));
.
onTimeout
(()
->
logWatchedKeys
(
watchedKeys
,
"Apollo.LongPoll.TimeOutKeys"
));
deferredResult
.
onCompletion
(()
->
{
//unregister all keys
for
(
String
key
:
watchedKeys
)
{
deferredResults
.
remove
(
key
,
deferredResult
);
}
logWatchedKeys
ToMonitor
(
watchedKeys
,
"Apollo.LongPoll.CompletedKeys"
);
logWatchedKeys
(
watchedKeys
,
"Apollo.LongPoll.CompletedKeys"
);
});
logWatchedKeys
ToMonitor
(
watchedKeys
,
"Apollo.LongPoll.RegisteredKeys"
);
logWatchedKeys
(
watchedKeys
,
"Apollo.LongPoll.RegisteredKeys"
);
logger
.
debug
(
"Listening {} from appId: {}, cluster: {}, namespace: {}, datacenter: {}"
,
watchedKeys
,
appId
,
cluster
,
namespaces
,
dataCenter
);
}
...
...
@@ -278,7 +278,7 @@ public class NotificationControllerV2 implements ReleaseMessageListener {
return
keys
.
get
(
2
);
};
private
void
logWatchedKeys
ToMonitor
(
Set
<
String
>
watchedKeys
,
String
eventName
)
{
private
void
logWatchedKeys
(
Set
<
String
>
watchedKeys
,
String
eventName
)
{
for
(
String
watchedKey
:
watchedKeys
)
{
Tracer
.
logEvent
(
eventName
,
watchedKey
);
}
...
...
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