Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ops
/
monitor-service
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
qinchao
7 years ago
Commit
cd54ba5ed607b03d9ca673e739bf821d4e6d92c5
1 parent
31f49cef
切换lb改为异步
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
monitor-service-switch/src/main/java/com/monitor/switchs/NginxSwitchCtrl.java
monitor-service-switch/src/main/java/com/monitor/switchs/NginxSwitchCtrl.java
View file @
cd54ba5
...
...
@@ -41,7 +41,7 @@ public class NginxSwitchCtrl {
private
long
sleepTime
=
10
*
1000L
;
private
volatile
AtomicInteger
valueCount
=
new
AtomicInteger
(
1
);
private
AtomicInteger
valueCount
=
new
AtomicInteger
(
1
);
private
Map
<
String
,
BaseResponse
>
switchLbResponseMap
=
new
ConcurrentHashMap
<>();
...
...
@@ -60,6 +60,9 @@ public class NginxSwitchCtrl {
Set
<
String
>
nowIDset
=
switchLbResponseMap
.
keySet
();
List
<
String
>
ids
=
Lists
.
newArrayList
(
rtnID
.
split
(
","
));
if
(
nowIDset
.
containsAll
(
ids
)){
for
(
String
id:
ids
){
switchLbResponseMap
.
remove
(
id
);
}
return
new
BaseResponse
();
}
return
new
BaseResponse
(
201
,
"not finished"
);
...
...
Please
register
or
login
to post a comment