Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
shop
Project
Project
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
曲欣亮
shop
Commits
7a37a46e
Commit
7a37a46e
authored
Oct 06, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
f59a61a3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
AliyunLogProducer.java
...main/java/com/egolm/shop/aliyunLog/AliyunLogProducer.java
+4
-1
application.properties
src/main/resources/application.properties
+1
-0
No files found.
src/main/java/com/egolm/shop/aliyunLog/AliyunLogProducer.java
View file @
7a37a46e
...
@@ -35,6 +35,9 @@ public class AliyunLogProducer {
...
@@ -35,6 +35,9 @@ public class AliyunLogProducer {
@Value
(
"${logProducer.isOpen}"
)
@Value
(
"${logProducer.isOpen}"
)
private
Boolean
isOpen
;
private
Boolean
isOpen
;
@Value
(
"${logProducer.logName}"
)
private
String
logName
;
private
static
final
ExecutorService
EXECUTOR_SERVICE
=
Executors
.
newCachedThreadPool
();
private
static
final
ExecutorService
EXECUTOR_SERVICE
=
Executors
.
newCachedThreadPool
();
...
@@ -46,7 +49,7 @@ public class AliyunLogProducer {
...
@@ -46,7 +49,7 @@ public class AliyunLogProducer {
List
<
LogItem
>
logItems
=
new
ArrayList
<
LogItem
>();
List
<
LogItem
>
logItems
=
new
ArrayList
<
LogItem
>();
LogItem
logItem
=
new
LogItem
();
LogItem
logItem
=
new
LogItem
();
logItem
.
PushBack
(
"id"
,
String
.
valueOf
(
System
.
currentTimeMillis
()));
logItem
.
PushBack
(
"id"
,
String
.
valueOf
(
System
.
currentTimeMillis
()));
logItem
.
PushBack
(
"AST_SHOP_ERROR_LOG"
,
logText
);
logItem
.
PushBack
(
logName
,
logText
);
logItems
.
add
(
logItem
);
logItems
.
add
(
logItem
);
ListenableFuture
<
Result
>
future
=
producer
.
send
(
project
,
logStore
,
logItems
);
ListenableFuture
<
Result
>
future
=
producer
.
send
(
project
,
logStore
,
logItems
);
Futures
.
addCallback
(
future
,
new
SampleFutureCallback
(
project
,
logStore
,
logText
),
EXECUTOR_SERVICE
);
Futures
.
addCallback
(
future
,
new
SampleFutureCallback
(
project
,
logStore
,
logText
),
EXECUTOR_SERVICE
);
...
...
src/main/resources/application.properties
View file @
7a37a46e
...
@@ -13,6 +13,7 @@ solr.goods.cron-for-day: 0 0 3 * * ?
...
@@ -13,6 +13,7 @@ solr.goods.cron-for-day: 0 0 3 * * ?
solr.goods.cron-for-minute
:
0 * * * * ?
solr.goods.cron-for-minute
:
0 * * * * ?
solr.baseURL
=
http://10.10.0.15:8983/solr/goods
solr.baseURL
=
http://10.10.0.15:8983/solr/goods
logProducer.logName
=
AST_SHOP_ERROR_LOG
logProducer.isOpen
=
false
logProducer.isOpen
=
false
logProducer.project
=
linkfernlog
logProducer.project
=
linkfernlog
logProducer.logStore
=
linkfernlogstore
logProducer.logStore
=
linkfernlogstore
...
...
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