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
431ef719
Commit
431ef719
authored
Jul 01, 2018
by
Nepxion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加服务注册的数目限制过滤
parent
5afc0d9e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
discovery-plugin-framework/src/main/java/com/nepxion/discovery/plugin/framework/constant/PluginConstant.java
+1
-1
discovery-plugin-framework/src/main/java/com/nepxion/discovery/plugin/framework/listener/impl/CountFilterRegisterListener.java
+1
-1
No files found.
discovery-plugin-framework/src/main/java/com/nepxion/discovery/plugin/framework/constant/PluginConstant.java
View file @
431ef719
...
...
@@ -22,7 +22,7 @@ public class PluginConstant {
public
static
final
String
HOST
=
"host"
;
public
static
final
String
PORT
=
"port"
;
public
static
final
String
INSTANCES
=
"instances"
;
public
static
final
String
COUNT_LIMIT
=
"countLimi
t"
;
public
static
final
String
REACH_MAX_LIMITED_COUNT
=
"reach max limited coun
t"
;
public
static
final
String
ENCODING_UTF_8
=
"UTF-8"
;
public
static
final
String
SEPARATE
=
";"
;
...
...
discovery-plugin-framework/src/main/java/com/nepxion/discovery/plugin/framework/listener/impl/CountFilterRegisterListener.java
View file @
431ef719
...
...
@@ -85,7 +85,7 @@ public class CountFilterRegisterListener extends AbstractRegisterListener {
Boolean
registerFailureEventEnabled
=
environment
.
getProperty
(
PluginConstant
.
SPRING_APPLICATION_REGISTER_FAILURE_EVENT_ENABLED
,
Boolean
.
class
,
Boolean
.
FALSE
);
if
(
registerFailureEventEnabled
)
{
pluginPublisher
.
asyncPublish
(
new
RegisterFailureEvent
(
PluginConstant
.
COUNT_LIMI
T
,
description
,
serviceId
,
ipAddress
,
port
));
pluginPublisher
.
asyncPublish
(
new
RegisterFailureEvent
(
PluginConstant
.
REACH_MAX_LIMITED_COUN
T
,
description
,
serviceId
,
ipAddress
,
port
));
}
throw
new
PluginException
(
description
);
...
...
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