Commit 7a975ecfc3e243311b74a0a711bee88d4f41cc45
1 parent
eb2f1da0
update...
Showing
1 changed file
with
6 additions
and
5 deletions
src/main/java/com/bsth/XDApplication.java
| 1 | package com.bsth; | 1 | package com.bsth; |
| 2 | 2 | ||
| 3 | import com.bsth.data.BasicData; | 3 | import com.bsth.data.BasicData; |
| 4 | +import com.bsth.data.LineVersionsData; | ||
| 4 | import com.bsth.data.ThreadMonotor; | 5 | import com.bsth.data.ThreadMonotor; |
| 5 | import com.bsth.data.car_out_info.UpdateDBThread; | 6 | import com.bsth.data.car_out_info.UpdateDBThread; |
| 6 | import com.bsth.data.directive.DirectivesPstThread; | 7 | import com.bsth.data.directive.DirectivesPstThread; |
| @@ -73,8 +74,8 @@ public class XDApplication implements CommandLineRunner { | @@ -73,8 +74,8 @@ public class XDApplication implements CommandLineRunner { | ||
| 73 | @Autowired | 74 | @Autowired |
| 74 | OfflineMonitorThread offlineMonitorThread; | 75 | OfflineMonitorThread offlineMonitorThread; |
| 75 | 76 | ||
| 76 | - //@Autowired | ||
| 77 | - //LineVersionsData lineVersionsData; | 77 | + @Autowired |
| 78 | + LineVersionsData lineVersionsData; | ||
| 78 | 79 | ||
| 79 | @Autowired | 80 | @Autowired |
| 80 | FixedEnableVerionsThread fixedEnableVerionsThread; | 81 | FixedEnableVerionsThread fixedEnableVerionsThread; |
| @@ -149,7 +150,7 @@ public class XDApplication implements CommandLineRunner { | @@ -149,7 +150,7 @@ public class XDApplication implements CommandLineRunner { | ||
| 149 | log.info("prodInit..."); | 150 | log.info("prodInit..."); |
| 150 | ScheduledExecutorService sexec = Application.mainServices; | 151 | ScheduledExecutorService sexec = Application.mainServices; |
| 151 | //安全驾驶 | 152 | //安全驾驶 |
| 152 | - sexec.scheduleWithFixedDelay(safeDrivDataLoadThread, 180, 10, TimeUnit.SECONDS); | 153 | + //sexec.scheduleWithFixedDelay(safeDrivDataLoadThread, 180, 10, TimeUnit.SECONDS); |
| 153 | 154 | ||
| 154 | /** 线调业务 */ | 155 | /** 线调业务 */ |
| 155 | sexec.scheduleWithFixedDelay(scheduleRefreshThread, 10, 120, TimeUnit.SECONDS);//班次更新线程 | 156 | sexec.scheduleWithFixedDelay(scheduleRefreshThread, 10, 120, TimeUnit.SECONDS);//班次更新线程 |
| @@ -181,9 +182,9 @@ public class XDApplication implements CommandLineRunner { | @@ -181,9 +182,9 @@ public class XDApplication implements CommandLineRunner { | ||
| 181 | sexec.scheduleAtFixedRate(calcOilThread, timeDiff / 1000, 60 * 60 * 24, TimeUnit.SECONDS); | 182 | sexec.scheduleAtFixedRate(calcOilThread, timeDiff / 1000, 60 * 60 * 24, TimeUnit.SECONDS); |
| 182 | 183 | ||
| 183 | //线路版本更新 | 184 | //线路版本更新 |
| 184 | - //sexec.scheduleWithFixedDelay(lineVersionsData, 60 * 5, 60 * 15, TimeUnit.SECONDS); | 185 | + sexec.scheduleWithFixedDelay(lineVersionsData, 60 * 5, 60 * 15, TimeUnit.SECONDS); |
| 185 | 186 | ||
| 186 | //线路版本更新 | 187 | //线路版本更新 |
| 187 | - sexec.scheduleWithFixedDelay(fixedEnableVerionsThread, 60 * 4, 60 * 2 , TimeUnit.SECONDS); | 188 | + //sexec.scheduleWithFixedDelay(fixedEnableVerionsThread, 60 * 4, 60 * 2 , TimeUnit.SECONDS); |
| 188 | } | 189 | } |
| 189 | } | 190 | } |