自动化立体仓库 - WCS系统
*
lsh
2025-03-01 d9119750c61e180c967bbab77cc27f8f5f66f794
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
package com.zy.asrs.task.core;//package com.zy.asrs.task.core;
//
//import com.zy.asrs.task.handler.WorkLogHandler;
//import com.zy.asrs.task.handler.WorkMastHandler;
//import com.zy.system.service.ConfigService;
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//import org.springframework.beans.factory.annotation.Autowired;
//
//import javax.annotation.PostConstruct;
//import javax.annotation.PreDestroy;
//
///**
// * 单线程模式  ( 已弃用 )
// * 任务中心调度器
// * Created by vincent on 2020/7/4
// */
////@Component
//@Deprecated
//public class WcsDispatcher {
//
//    private static final Logger log = LoggerFactory.getLogger(WcsDispatcher.class);
//    private Thread thread;
//
//    @Autowired
//    private WorkMastHandler workMastHandler;
//    @Autowired
//    private WorkLogHandler workLogHandler;
//    @Autowired
//    private ConfigService configService;
//
//    @PostConstruct
//    private void start(){
//        thread = new Thread(() -> {
//            while (!Thread.currentThread().isInterrupted()) {
//                try {
//                    Thread.sleep(3000);
//
////                    workMastHandler.start();
////
////                    workLogHandler.start();
//
//                } catch (Exception e) {
//                    log.error("Exception", e);
//                }
//            }
//        });
//        thread.start();
//        log.info("任务中心调度器已启动......");
//    }
//
//    @PreDestroy
//    public void shutDown(){
//        if (thread != null)
//            thread.interrupt();
//        log.info("任务中心调度器已停止......");
//    }
//
//}