Commit dea792866a5577c07188df28e1b3d4cf7e6af4e9
1 parent
3308eb29
update...
Showing
1 changed file
with
1 additions
and
3 deletions
src/main/java/com/bsth/data/gpsdata/GpsRealData.java
| 1 | package com.bsth.data.gpsdata; | 1 | package com.bsth.data.gpsdata; |
| 2 | 2 | ||
| 3 | -import com.bsth.Application; | ||
| 4 | import com.bsth.data.BasicData; | 3 | import com.bsth.data.BasicData; |
| 5 | import com.bsth.data.forecast.ForecastRealServer; | 4 | import com.bsth.data.forecast.ForecastRealServer; |
| 6 | import com.bsth.data.gpsdata.thread.GpsDataLoaderThread; | 5 | import com.bsth.data.gpsdata.thread.GpsDataLoaderThread; |
| @@ -16,7 +15,6 @@ import org.springframework.boot.CommandLineRunner; | @@ -16,7 +15,6 @@ import org.springframework.boot.CommandLineRunner; | ||
| 16 | import org.springframework.stereotype.Component; | 15 | import org.springframework.stereotype.Component; |
| 17 | 16 | ||
| 18 | import java.util.*; | 17 | import java.util.*; |
| 19 | -import java.util.concurrent.TimeUnit; | ||
| 20 | 18 | ||
| 21 | /** | 19 | /** |
| 22 | * @author PanZhao | 20 | * @author PanZhao |
| @@ -58,7 +56,7 @@ public class GpsRealData implements CommandLineRunner { | @@ -58,7 +56,7 @@ public class GpsRealData implements CommandLineRunner { | ||
| 58 | public void run(String... arg0) throws Exception { | 56 | public void run(String... arg0) throws Exception { |
| 59 | logger.info("gpsDataLoader,20,5"); | 57 | logger.info("gpsDataLoader,20,5"); |
| 60 | //定时从网关获取GPS数据 | 58 | //定时从网关获取GPS数据 |
| 61 | - Application.mainServices.scheduleWithFixedDelay(gpsDataLoader, 20, 5, TimeUnit.SECONDS); | 59 | + //Application.mainServices.scheduleWithFixedDelay(gpsDataLoader, 20, 5, TimeUnit.SECONDS); |
| 62 | //定时扫描掉离线 | 60 | //定时扫描掉离线 |
| 63 | //Application.mainServices.scheduleWithFixedDelay(offlineMonitorThread, 120, 60, TimeUnit.SECONDS); | 61 | //Application.mainServices.scheduleWithFixedDelay(offlineMonitorThread, 120, 60, TimeUnit.SECONDS); |
| 64 | } | 62 | } |