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;
  }
  private List<QuartzScheduleJobBO> getAllDbSchedule(Integer dbType) {
    List<QuartzScheduleJobBO> jobs = new ArrayList<QuartzScheduleJobBO>();
    List<DbConfigDomain> dbList = dbConfigDAO.listNormalDbConfig(dbType);
    for (DbConfigDomain domain : dbList) {
      List<DeamonScheduleconfigDomain> list =
          deamonScheduleconfigDAO.listDbTypeDeamonScheduleconfig(domain.getDbId(), dbType);

      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.setPort(domain.getPort());
          bo.setIpAddr(domain.getIpAddr());

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