Commit f47e88726444e2c8e96811cab3bb1c1294cb32e0
1 parent
4892837d
update...
Showing
1 changed file
with
8 additions
and
0 deletions
src/main/java/com/bsth/controller/realcontrol/anomalyCheckController.java
| 1 | 1 | package com.bsth.controller.realcontrol; |
| 2 | 2 | |
| 3 | 3 | import com.bsth.data.gpsdata.arrival.GpsRealAnalyse; |
| 4 | +import com.bsth.data.gpsdata.thread.GpsDataLoaderThread; | |
| 4 | 5 | import com.bsth.data.msg_queue.DirectivePushQueue; |
| 5 | 6 | import com.bsth.data.msg_queue.WebSocketPushQueue; |
| 6 | 7 | import com.bsth.data.schedule.DayOfSchedule; |
| ... | ... | @@ -67,4 +68,11 @@ public class anomalyCheckController { |
| 67 | 68 | public void webSocketPushQueue(){ |
| 68 | 69 | WebSocketPushQueue.start(); |
| 69 | 70 | } |
| 71 | + | |
| 72 | + @RequestMapping(value = "/setHttpFlag") | |
| 73 | + public void setHttpFlag(@RequestParam int flag){ | |
| 74 | + if(flag != 0 && flag != -1) | |
| 75 | + return; | |
| 76 | + GpsDataLoaderThread.setFlag(flag); | |
| 77 | + } | |
| 70 | 78 | } | ... | ... |