Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
saasio
Project
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
reyun
saasio
Commits
51d67ae1
Commit
51d67ae1
authored
Apr 03, 2018
by
carrieyzzhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bucket config
parent
7ec5797e
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
2 deletions
+7
-2
pom.xml
pom.xml
+3
-0
ExportReportTask.java
src/main/java/com/reyun/task/ExportReportTask.java
+1
-1
ExportReportThread.java
src/main/java/com/reyun/taskexecute/ExportReportThread.java
+1
-1
Constant.java
src/main/java/com/reyun/util/Constant.java
+1
-0
key.properties
src/main/resources/key.properties
+1
-0
No files found.
pom.xml
View file @
51d67ae1
...
@@ -94,6 +94,7 @@
...
@@ -94,6 +94,7 @@
<ddb.accesskey>
AKIAOS2UEXIFNVER2O6A
</ddb.accesskey>
<ddb.accesskey>
AKIAOS2UEXIFNVER2O6A
</ddb.accesskey>
<ddb.secretkey>
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
</ddb.secretkey>
<ddb.secretkey>
3CQeG23urzxP7J5Vj4K7n3iKZIrmErukhvWGKsHI
</ddb.secretkey>
<bucket>
reyundownload-test
</bucket>
<report.export.task>
ExportReportTask
</report.export.task>
<report.export.task>
ExportReportTask
</report.export.task>
...
@@ -210,6 +211,7 @@
...
@@ -210,6 +211,7 @@
<ddb.accesskey>
AKIAOS2UEXIFNVER2O6A
</ddb.accesskey>
<ddb.accesskey>
AKIAOS2UEXIFNVER2O6A
</ddb.accesskey>
<ddb.secretkey>
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
</ddb.secretkey>
<ddb.secretkey>
3CQeG23urzxP7J5Vj4K7n3iKZIrmErukhvWGKsHI
</ddb.secretkey>
<bucket>
reyundownload-test
</bucket>
<report.export.task>
ExportReportTask
</report.export.task>
<report.export.task>
ExportReportTask
</report.export.task>
...
@@ -285,6 +287,7 @@
...
@@ -285,6 +287,7 @@
<ddb.accesskey>
AKIAPMJ4QRXP6BECFUVQ
</ddb.accesskey>
<ddb.accesskey>
AKIAPMJ4QRXP6BECFUVQ
</ddb.accesskey>
<ddb.secretkey>
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
</ddb.secretkey>
<ddb.secretkey>
+hQ6P0FOYqCLRo70d96Q+2dcH+Ag8QsfniNrBn73
</ddb.secretkey>
<bucket>
reyundownload
</bucket>
<report.export.task>
ExportReportTask
</report.export.task>
<report.export.task>
ExportReportTask
</report.export.task>
...
...
src/main/java/com/reyun/task/ExportReportTask.java
View file @
51d67ae1
...
@@ -26,7 +26,7 @@ public class ExportReportTask {
...
@@ -26,7 +26,7 @@ public class ExportReportTask {
private
static
Logger
logger
=
LoggerFactory
.
getLogger
(
ExportReportTask
.
class
);
private
static
Logger
logger
=
LoggerFactory
.
getLogger
(
ExportReportTask
.
class
);
private
static
int
EXPIRE_PERIOD
=
(
int
)
DateUtils
.
MILLIS_PER_MINUTE
*
1
/
1000
;
private
static
int
EXPIRE_PERIOD
=
(
int
)
DateUtils
.
MILLIS_PER_MINUTE
*
1
/
1000
;
private
static
final
String
S3_DOWNLOAD_BUCKET
=
"reyundownload-test"
;
private
static
final
String
S3_DOWNLOAD_BUCKET
=
Constant
.
bucket
;
private
static
final
String
DOWNLOAD_PATH
=
"trackingio/reportdownload/"
;
private
static
final
String
DOWNLOAD_PATH
=
"trackingio/reportdownload/"
;
...
...
src/main/java/com/reyun/taskexecute/ExportReportThread.java
View file @
51d67ae1
...
@@ -41,7 +41,7 @@ public class ExportReportThread extends Thread {
...
@@ -41,7 +41,7 @@ public class ExportReportThread extends Thread {
private
RetentionService
retentionService
=
AppUtils
.
getApplicationContext
().
getBean
(
RetentionService
.
class
);
private
RetentionService
retentionService
=
AppUtils
.
getApplicationContext
().
getBean
(
RetentionService
.
class
);
private
static
final
String
S3_DOWNLOAD_BUCKET
=
"reyundownload"
;
private
static
final
String
S3_DOWNLOAD_BUCKET
=
Constant
.
bucket
;
private
static
final
String
DOWNLOAD_PATH
=
"trackingio/reportdownload/"
;
private
static
final
String
DOWNLOAD_PATH
=
"trackingio/reportdownload/"
;
...
...
src/main/java/com/reyun/util/Constant.java
View file @
51d67ae1
...
@@ -62,4 +62,5 @@ public class Constant {
...
@@ -62,4 +62,5 @@ public class Constant {
public
static
ResourceBundle
keyBuddle
=
ResourceBundle
.
getBundle
(
"key"
);
public
static
ResourceBundle
keyBuddle
=
ResourceBundle
.
getBundle
(
"key"
);
public
static
String
accessKey
=
keyBuddle
.
getString
(
"ddb.accesskey"
);
public
static
String
accessKey
=
keyBuddle
.
getString
(
"ddb.accesskey"
);
public
static
String
secretKey
=
keyBuddle
.
getString
(
"ddb.secretkey"
);
public
static
String
secretKey
=
keyBuddle
.
getString
(
"ddb.secretkey"
);
public
static
String
bucket
=
keyBuddle
.
getString
(
"bucket"
);
}
}
src/main/resources/key.properties
View file @
51d67ae1
# Redis common settings
# Redis common settings
ddb.accesskey
=
${ddb.accesskey}
ddb.accesskey
=
${ddb.accesskey}
ddb.secretkey
=
${ddb.secretkey}
ddb.secretkey
=
${ddb.secretkey}
bucket
=
${bucket}
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