| | |
| | | thread = new Thread(this::cenAndDevRun); |
| | | thread.start(); |
| | | |
| | | thread2 = new Thread(this::jarRun); |
| | | thread2.start(); |
| | | // thread2 = new Thread(this::jarRun); |
| | | // thread2.start(); |
| | | } |
| | | |
| | | |
| | |
| | | mainService.signTrunBig(); |
| | | |
| | | |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |
| | | } |
| | | } |
| | | private void jarRun() { |
| | | while (!Thread.currentThread().isInterrupted()) { |
| | | try { |
| | | |
| | | k++; |
| | | if (k>5) { |
| | | k=0; |
| | |
| | | mainService.jarChargeGenerate(); |
| | | |
| | | /************************************JAR调度************************************/ |
| | | |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |
| | | } |
| | | } |
| | | private void jarRun() { |
| | | while (!Thread.currentThread().isInterrupted()) { |
| | | try { |
| | | |
| | | // 间隔 |
| | | Thread.sleep(500); |
| | | |
| | | // 系统运行状态判断 |
| | | if (!SystemProperties.WCS_RUNNING_STATUS.get()) { |
| | | continue; |
| | | }} catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |
| | | } |
| | | } |
| | | |
| | | @PreDestroy |
| | | public void shutDown(){ |