/** 主机的调度任务 */
  private List<QuartzScheduleJobBO> getHostSchedule(String serverId) {
    List<QuartzScheduleJobBO> jobs = new ArrayList<QuartzScheduleJobBO>();
    List<HostConfigDomain> hostList = hostConfigDAO.listHostConfig(serverId);
    for (HostConfigDomain domain : hostList) {
      List<DeamonScheduleconfigDomain> list =
          deamonScheduleconfigDAO.listDeamonScheduleconfigByMonitorId(
              domain.getHostId(), SysTypeEnum.server.getVal());

      if (list != null && list.size() > 0) {
        for (DeamonScheduleconfigDomain scheduleDomain : list) {
          QuartzScheduleJobBO bo = convertConfigToScheduleJob(scheduleDomain);
          if (bo == null) continue;
          jobs.add(bo);
        }
      }
    }
    return jobs;
  }
  private List<QuartzScheduleJobBO> getAllHostSchedule() {
    List<QuartzScheduleJobBO> jobs = new ArrayList<QuartzScheduleJobBO>();
    List<HostConfigDomain> hostList = hostConfigDAO.listNormalHostConfig();
    for (HostConfigDomain domain : hostList) {
      List<DeamonScheduleconfigDomain> list =
          deamonScheduleconfigDAO.listServerDeamonScheduleconfig(domain.getHostId());

      if (list != null && list.size() > 0) {
        for (DeamonScheduleconfigDomain scheduleDomain : list) {
          QuartzScheduleJobBO bo = convertConfigToScheduleJob(scheduleDomain);
          if (bo == null) continue;

          bo.setJobStatus(String.valueOf(scheduleDomain.getStatus()));
          bo.setServerId(domain.getServerId());
          bo.setIpAddr(domain.getIpAddr());

          jobs.add(bo);
        }
      }
    }
    return jobs;
  }