Commit 8e10911f3118d262856e918f86eec08cce1256e3
1 parent
e82b0342
update...
Showing
6 changed files
with
18 additions
and
18 deletions
src/main/java/com/bsth/XDApplication.java
| ... | ... | @@ -156,11 +156,12 @@ public class XDApplication implements CommandLineRunner { |
| 156 | 156 | log.info("prodInit..."); |
| 157 | 157 | ScheduledExecutorService sexec = Application.mainServices; |
| 158 | 158 | //安全驾驶 |
| 159 | - sexec.scheduleWithFixedDelay(safeDrivDataLoadThread, 180, 10, TimeUnit.SECONDS); | |
| 159 | + //sexec.scheduleWithFixedDelay(safeDrivDataLoadThread, 180, 10, TimeUnit.SECONDS); | |
| 160 | 160 | |
| 161 | 161 | /** 线调业务 */ |
| 162 | 162 | sexec.scheduleWithFixedDelay(scheduleRefreshThread, 10, 120, TimeUnit.SECONDS);//班次更新线程 |
| 163 | 163 | sexec.scheduleWithFixedDelay(scheduleLateThread, 140, 30, TimeUnit.SECONDS);//检查班次误点 |
| 164 | + gpsDataLoader.setFlag(-1); | |
| 164 | 165 | sexec.scheduleWithFixedDelay(gpsDataLoader, 100, 2, TimeUnit.SECONDS);//抓取GPS数据 |
| 165 | 166 | sexec.scheduleWithFixedDelay(fixedCheckStationCodeThread, 60, 60 * 5, TimeUnit.SECONDS);//检查班次站点编码 |
| 166 | 167 | ... | ... |
src/main/java/com/bsth/data/gpsdata_v2/DataHandleProcess.java
| ... | ... | @@ -41,7 +41,7 @@ public class DataHandleProcess { |
| 41 | 41 | |
| 42 | 42 | static Logger logger = LoggerFactory.getLogger(DataHandleProcess.class); |
| 43 | 43 | |
| 44 | - final static int POOL_SIZE = 20; | |
| 44 | + final static int POOL_SIZE = 8; | |
| 45 | 45 | |
| 46 | 46 | static ExecutorService threadPool = Executors.newFixedThreadPool(POOL_SIZE + 1); |
| 47 | 47 | public static CountDownLatch count; | ... | ... |
src/main/resources/application-prod.properties
| ... | ... | @@ -8,9 +8,9 @@ spring.jpa.hibernate.naming_strategy= org.hibernate.cfg.ImprovedNamingStrategy |
| 8 | 8 | spring.jpa.database= MYSQL |
| 9 | 9 | spring.jpa.show-sql= false |
| 10 | 10 | spring.datasource.driver-class-name= com.mysql.jdbc.Driver |
| 11 | -spring.datasource.url= jdbc:mysql://10.10.150.20:3306/control?useUnicode=true&characterEncoding=utf-8&useSSL=false | |
| 11 | +spring.datasource.url= jdbc:mysql://192.168.168.171:3306/control?useUnicode=true&characterEncoding=utf-8&useSSL=false | |
| 12 | 12 | spring.datasource.username= root |
| 13 | -spring.datasource.password= root2jsp@JSP | |
| 13 | +spring.datasource.password= root2jsp | |
| 14 | 14 | #DATASOURCE |
| 15 | 15 | spring.datasource.max-active=100 |
| 16 | 16 | spring.datasource.max-idle=8 |
| ... | ... | @@ -23,9 +23,9 @@ spring.datasource.test-on-return=true |
| 23 | 23 | spring.datasource.test-while-idle=true |
| 24 | 24 | spring.datasource.validation-query=select 1 |
| 25 | 25 | |
| 26 | -## gps client data | |
| 27 | -http.gps.real.cache.url= http://10.10.150.24:12580/realGps/all | |
| 28 | -## gateway real data | |
| 29 | -http.gps.real.url= http://10.10.150.21:8080/transport_server/rtgps/ | |
| 30 | -## gateway send directive | |
| 31 | -http.send.directive = http://10.10.150.21:8080/transport_server/message/ | |
| 32 | 26 | \ No newline at end of file |
| 27 | +## | |
| 28 | +#222.66.0.204:5555 | |
| 29 | +##\u5B9E\u65F6gps | |
| 30 | +http.gps.real.url= http://192.168.168.171:8080/transport_server/rtgps/ | |
| 31 | +##\u6D88\u606F\u4E0B\u53D1 | |
| 32 | +http.send.directive = http://192.168.168.171:8080/transport_server/message/ | |
| 33 | 33 | \ No newline at end of file | ... | ... |
src/main/resources/datatools/config-prod.properties
| ... | ... | @@ -5,11 +5,11 @@ datatools.kettle_properties=/datatools/kettle.properties |
| 5 | 5 | # 2、ktr文件通用配置变量(数据库连接,根据不同的环境需要修正) |
| 6 | 6 | |
| 7 | 7 | #数据库ip地址 |
| 8 | -datatools.kvars_dbip=10.10.150.20 | |
| 8 | +datatools.kvars_dbip=192.168.168.171 | |
| 9 | 9 | #数据库用户名 |
| 10 | 10 | datatools.kvars_dbuname=root |
| 11 | 11 | #数据库密码 |
| 12 | -datatools.kvars_dbpwd=root2jsp@JSP | |
| 12 | +datatools.kvars_dbpwd=root2jsp | |
| 13 | 13 | #数据库库名 |
| 14 | 14 | datatools.kvars_dbdname=control |
| 15 | 15 | ... | ... |
src/main/resources/ms-jdbc.properties
| ... | ... | @@ -4,6 +4,6 @@ |
| 4 | 4 | #ms.mysql.password= 123456 |
| 5 | 5 | |
| 6 | 6 | ms.mysql.driver= com.mysql.jdbc.Driver |
| 7 | -ms.mysql.url= jdbc:mysql://10.10.200.226:3306/ms?useUnicode=true&characterEncoding=utf-8 | |
| 7 | +ms.mysql.url= jdbc:mysql://192.168.168.171:3306/ms?useUnicode=true&characterEncoding=utf-8 | |
| 8 | 8 | ms.mysql.username= root |
| 9 | -ms.mysql.password= root2jsp | |
| 9 | +ms.mysql.password= root2jsp | |
| 10 | 10 | \ No newline at end of file | ... | ... |
src/main/resources/traffic-jdbc.properties
| 1 | 1 | #ms.mysql.driver= com.mysql.jdbc.Driver |
| 2 | -#ms.mysql.url= jdbc:mysql://127.0.0.1/pd_control?useUnicode=true&characterEncoding=utf-8&useSSL=false | |
| 2 | +#ms.mysql.url= jdbc:mysql://192.168.168.201:3306/ms?useUnicode=true&characterEncoding=utf-8&useSSL=false | |
| 3 | 3 | #ms.mysql.username= root |
| 4 | 4 | #ms.mysql.password= 123456 |
| 5 | 5 | |
| 6 | 6 | ms.mysql.driver= com.mysql.jdbc.Driver |
| 7 | -ms.mysql.url= jdbc:mysql://10.10.150.21:3306/ms?useUnicode=true&characterEncoding=utf-8 | |
| 7 | +ms.mysql.url= jdbc:mysql://192.168.168.171:3306/ms?useUnicode=true&characterEncoding=utf-8 | |
| 8 | 8 | ms.mysql.username= root |
| 9 | -ms.mysql.password= root2jsp@JSP | |
| 10 | - | |
| 9 | +ms.mysql.password= root2jsp | |
| 11 | 10 | \ No newline at end of file | ... | ... |