|  |  | 
 |  |  |             public void run() { | 
 |  |  |                 try { | 
 |  |  |                     while(true){ | 
 |  |  |                         if(!ServerProperties.startWork){ | 
 |  |  |                         if(!ServerProperties.startTcpConnectWork){ | 
 |  |  |                             Thread.sleep(100L); | 
 |  |  |                         }else{ | 
 |  |  |                             try{ | 
 |  |  | 
 |  |  |                                     } | 
 |  |  |                                 } | 
 |  |  |  | 
 |  |  |                                 startJob() ; | 
 |  |  |                                 while (true){ | 
 |  |  |                                     if(!ServerProperties.startRtuReportWork){ | 
 |  |  |                                         Thread.sleep(100L); | 
 |  |  |                                     }else{ | 
 |  |  |                                         startJob() ; | 
 |  |  |                                         break ; | 
 |  |  |                                     } | 
 |  |  |                                 } | 
 |  |  |  | 
 |  |  |                                 while(true){ | 
 |  |  |                                     if(totalOverClientCount.longValue() >= totalRtuClientCount.longValue()){ | 
 |  |  | 
 |  |  |         totalSendDataCount++; | 
 |  |  |         if(totalOverClientCount.longValue() >= totalRtuClientCount.longValue()){ | 
 |  |  |             RmiClUnit.getInstance().reportHadReportCount(totalSendDataCount); | 
 |  |  |             System.out.println("已经发送" + totalSendDataCount + "条数据"); | 
 |  |  |             System.out.println("已经发送" + totalSendDataCount + "条数据(心跳和上报)"); | 
 |  |  |         }else{ | 
 |  |  |             if(totalRtuClientCount > 100){ | 
 |  |  |                 if(totalSendDataCount % 100 == 0){ | 
 |  |  |                     RmiClUnit.getInstance().reportHadReportCount(totalSendDataCount); | 
 |  |  |                     System.out.println("已经发送" + totalSendDataCount + "条数据"); | 
 |  |  |                     System.out.println("已经发送" + totalSendDataCount + "条数据(心跳和上报)"); | 
 |  |  |                 } | 
 |  |  |             }else{ | 
 |  |  |                 RmiClUnit.getInstance().reportHadReportCount(totalSendDataCount); | 
 |  |  |                 System.out.println("已经发送" + totalSendDataCount + "条数据"); | 
 |  |  |                 System.out.println("已经发送" + totalSendDataCount + "条数据(心跳和上报)"); | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |     } |