/** 批量关闭World */
 public void batchCloseWorldNew(
     String worldIds, HttpSession session, Map<Integer, List<Integer>> openDispatchIdMap)
     throws Exception {
   System.out.println("worldIds=" + worldIds);
   if (!StringUtils.isEmpty(worldIds)) {
     WorldServerService worldServerService = Application.getBean(WorldServerService.class);
     String[] worldIdArray = worldIds.split(",");
     for (int i = 0; i < worldIdArray.length; i++) {
       System.out.println("worldIdArray[i]=" + worldIdArray[i]);
       Application.getManager()
           .getSimpleThreadPool()
           .execute(
               this.createCloseTaskNew(
                   Integer.valueOf(worldIdArray[i]),
                   session,
                   worldServerService,
                   openDispatchIdMap));
     }
   }
 }
 public void synVersion(HttpSession session, String ids, String fileName) {
   String[] beanIds = ids.split(",");
   session.removeAttribute(Global.BATCH_UPDATE_REMOTE_CFG);
   session.removeAttribute(Global.UPDATE_CFG_BEAN_LIST);
   List<BeanInterface> beanInterfaceList = new ArrayList<BeanInterface>();
   List<BatchOpearVo> batchOpearVoList = new ArrayList<BatchOpearVo>();
   BatchOpearVo batchOpearVo = null;
   for (int i = 0; i < beanIds.length; i++) {
     batchOpearVo = new BatchOpearVo();
     batchOpearVo.setId(Integer.valueOf(beanIds[i]));
     batchOpearVo.setRemark("开始更新");
     System.out.println("更新" + beanIds[i]);
     // 更新文件操作
     Application.getManager()
         .getSimpleThreadPool()
         .execute(
             this.createSynVersionTask(
                 session, this.get(Integer.valueOf(beanIds[i])), batchOpearVo, fileName));
     beanInterfaceList.add(this.get(Integer.valueOf(beanIds[i])));
     batchOpearVoList.add(batchOpearVo);
   }
   session.setAttribute(Global.BATCH_UPDATE_REMOTE_CFG, batchOpearVoList);
   session.setAttribute(Global.UPDATE_CFG_BEAN_LIST, beanInterfaceList);
 }