Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dc-java
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
bltdc
dc-java
Commits
66e4a49e
Commit
66e4a49e
authored
Jul 26, 2019
by
wutong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加日志打印
parent
ea301dce
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
Dockerfile
data-base/base-sync-amazon-ad/Dockerfile
+2
-2
AmazonAdDownloadReportJob.java
...ain/java/com/bailuntec/job/AmazonAdDownloadReportJob.java
+2
-0
No files found.
data-base/base-sync-amazon-ad/Dockerfile
View file @
66e4a49e
...
...
@@ -20,4 +20,4 @@ RUN cd /usr/app/data-parent && mvn -T 1C install -pl ../data-base/base-sync-ama
#指定容器启动程序及参数 <ENTRYPOINT> "<CMD>"
EXPOSE
8080
ENTRYPOINT
["java","-XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap","-jar","/usr/app/data-base/base-sync-amazon-ad/target/base-sync-amazon-ad-1.0-SNAPSHOT.jar"]
\ No newline at end of file
ENTRYPOINT
["java","-Xms600m","-Xmx600m","-XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap","-jar","/usr/app/data-base/base-sync-amazon-ad/target/base-sync-amazon-ad-1.0-SNAPSHOT.jar"]
\ No newline at end of file
data-base/base-sync-amazon-ad/src/main/java/com/bailuntec/job/AmazonAdDownloadReportJob.java
View file @
66e4a49e
...
...
@@ -72,8 +72,10 @@ public class AmazonAdDownloadReportJob implements SimpleJob {
response
=
client
.
newCall
(
request
).
execute
();
if
(
response
.
isSuccessful
())
{
gzin
=
new
GZIPInputStream
(
response
.
body
().
byteStream
());
log
.
warn
(
"开始解析账号Id为"
+
jobAmazonAdLog
.
getAccountId
()
+
"的Report----"
+
jobAmazonAdLog
.
getReportId
()
+
", 文件大小为"
+
response
.
body
().
contentLength
());
List
<
AmazonAdProduct
>
amazonAdProductList
=
JSON
.
parseObject
(
gzin
,
new
TypeReference
<
List
<
AmazonAdProduct
>>()
{
}.
getType
());
log
.
warn
(
"账号Id"
+
jobAmazonAdLog
.
getAccountId
()
+
"的Report解析完成"
);
gzin
.
close
();
response
.
close
();
JobAmazonAdLogMapper
jobAmazonAdLogMapper
=
SessionUtil
.
getSession
().
getMapper
(
JobAmazonAdLogMapper
.
class
);
...
...
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