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
huluobin
dc-java
Commits
49e2d087
Commit
49e2d087
authored
Jan 15, 2021
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
# 采购
parent
880bfd5c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
Application.java
...hase-details/src/main/java/com/bailuntec/Application.java
+6
-2
job.properties
...e-sync-purchase-details/src/main/resources/job.properties
+4
-4
No files found.
data-base/base-sync-purchase-details/src/main/java/com/bailuntec/Application.java
View file @
49e2d087
package
com
.
bailuntec
;
import
com.alibaba.druid.pool.DruidDataSource
;
import
com.bailuntec.job.*
;
import
com.bailuntec.job.SyncPurchaseAimsJob
;
import
com.bailuntec.job.SyncPurchaseDetailsJob
;
import
com.bailuntec.job.SyncSemiPurchaseDetailsJob
;
import
com.bailuntec.job.SyncSemiPurchaseOldDetailsJob
;
import
com.bailuntec.utils.PropertiesUtil
;
import
com.dangdang.ddframe.job.config.JobCoreConfiguration
;
import
com.dangdang.ddframe.job.config.simple.SimpleJobConfiguration
;
...
...
@@ -23,6 +26,7 @@ public class Application {
private
static
final
String
EVENT_RDB_STORAGE_URL
=
propertiesUtil
.
getPropertyAsString
(
"EVENT_RDB_STORAGE_URL"
);
private
static
final
String
EVENT_RDB_STORAGE_USERNAME
=
propertiesUtil
.
getPropertyAsString
(
"EVENT_RDB_STORAGE_USERNAME"
);
private
static
final
String
EVENT_RDB_STORAGE_PASSWORD
=
propertiesUtil
.
getPropertyAsString
(
"EVENT_RDB_STORAGE_PASSWORD"
);
public
static
void
main
(
String
[]
args
)
{
new
JobScheduler
(
createRegistryCenter
(),
createJobConfiguration
()).
init
();
new
JobScheduler
(
createRegistryCenter
(),
createJobConfiguration1
()).
init
();
...
...
@@ -31,7 +35,7 @@ public class Application {
}
private
static
CoordinatorRegistryCenter
createRegistryCenter
()
{
CoordinatorRegistryCenter
regCenter
=
new
ZookeeperRegistryCenter
(
new
ZookeeperConfiguration
(
propertiesUtil
.
getPropertyAsString
(
"ZOOKEEPER_SERVER"
),
propertiesUtil
.
getPropertyAsString
(
"NAME_SPACE"
)));
CoordinatorRegistryCenter
regCenter
=
new
ZookeeperRegistryCenter
(
new
ZookeeperConfiguration
(
propertiesUtil
.
getPropertyAsString
(
"ZOOKEEPER_SERVER"
),
propertiesUtil
.
getPropertyAsString
(
"NAME_SPACE"
)));
regCenter
.
init
();
return
regCenter
;
}
...
...
data-base/base-sync-purchase-details/src/main/resources/job.properties
View file @
49e2d087
...
...
@@ -2,10 +2,10 @@
#EVENT_RDB_STORAGE_USERNAME=root
#EVENT_RDB_STORAGE_PASSWORD=123456
#ZOOKEEPER_SERVER=127.0.0.1:2181
EVENT_RDB_STORAGE_DRIVER
=
com.mysql.jdbc.Driver
EVENT_RDB_STORAGE_URL
=
jdbc:mysql://10.0.8.15:3306/bailun_datacenter?useUnicode=true&characterEncoding=utf-8&serverTimezone=GMT%2B8
EVENT_RDB_STORAGE_USERNAME
=
root
EVENT_RDB_STORAGE_PASSWORD
=
#7kfnymAM$Y9-Ntf
#
EVENT_RDB_STORAGE_DRIVER=com.mysql.jdbc.Driver
#
EVENT_RDB_STORAGE_URL=jdbc:mysql://10.0.8.15:3306/bailun_datacenter?useUnicode=true&characterEncoding=utf-8&serverTimezone=GMT%2B8
#
EVENT_RDB_STORAGE_USERNAME=root
#
EVENT_RDB_STORAGE_PASSWORD=#7kfnymAM$Y9-Ntf
ZOOKEEPER_SERVER
=
172.31.255.120:2181
NAME_SPACE
=
data-center
...
...
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