Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
messageflow
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
虞诚毅
messageflow
Commits
5b3f996b
Commit
5b3f996b
authored
Mar 08, 2019
by
303514581@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2019/3/8 backup事件过滤规则添加
parent
042fd7e6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
src/main/java/com/zhiwei/messageflow/ES4RedisStart.java
+5
-3
src/main/java/com/zhiwei/messageflow/service/impl/EventServiceImpl.java
+2
-1
No files found.
src/main/java/com/zhiwei/messageflow/ES4RedisStart.java
View file @
5b3f996b
...
@@ -71,9 +71,7 @@ public class ES4RedisStart {
...
@@ -71,9 +71,7 @@ public class ES4RedisStart {
// 遍历项目
// 遍历项目
for
(
Project
project
:
projects
)
{
for
(
Project
project
:
projects
)
{
// if(!project.getProjectName().equals("测试")) {
// continue;
// }
if
(
pcount
>=
PROJECTCOUNT
)
{
if
(
pcount
>=
PROJECTCOUNT
)
{
continue
;
continue
;
}
}
...
@@ -83,6 +81,10 @@ public class ES4RedisStart {
...
@@ -83,6 +81,10 @@ public class ES4RedisStart {
}
else
{
}
else
{
pcount
++;
pcount
++;
}
}
// if(!project.getProjectName().equals("测试")) {
// continue;
// }
/**
/**
* 项目全部平台(公共+私有)
* 项目全部平台(公共+私有)
...
...
src/main/java/com/zhiwei/messageflow/service/impl/EventServiceImpl.java
View file @
5b3f996b
...
@@ -54,7 +54,8 @@ public class EventServiceImpl implements EventService {
...
@@ -54,7 +54,8 @@ public class EventServiceImpl implements EventService {
private
static
final
List
<
String
>
SOURCENOTRULE
=
Arrays
.
asList
(
"主页"
,
"网页"
,
"首页"
,
"平台首页"
,
"早报"
,
"手机版"
,
"null"
);
private
static
final
List
<
String
>
SOURCENOTRULE
=
Arrays
.
asList
(
"主页"
,
"网页"
,
"首页"
,
"平台首页"
,
"早报"
,
"手机版"
,
"null"
);
/** 事件采集url过滤条件 **/
/** 事件采集url过滤条件 **/
private
static
final
List
<
String
>
URLNOTRULE
=
Arrays
.
asList
(
"zhihu.com"
,
"ali.71zs.com"
,
"v.qq.com"
,
"v.youku.com"
,
private
static
final
List
<
String
>
URLNOTRULE
=
Arrays
.
asList
(
"zhihu.com"
,
"ali.71zs.com"
,
"v.qq.com"
,
"v.youku.com"
,
"iqiyi.com"
,
"v.pptv.com"
,
"zuanke8.com"
,
"weibo.com"
,
"socialbeta.com"
,
"www.baidu.com/link?url="
,
"null"
);
"iqiyi.com"
,
"v.pptv.com"
,
"zuanke8.com"
,
"weibo.com"
,
"socialbeta.com"
,
"www.baidu.com/link?url="
,
"blog.sina.cn"
,
"blog.sina.com.cn"
,
"null"
);
@Autowired
@Autowired
@Qualifier
(
value
=
"primaryMongoTemplate"
)
@Qualifier
(
value
=
"primaryMongoTemplate"
)
...
...
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