test_class.declarator: schedulerService
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private SchedulerService schedulerService;
test_class.type: SchedulerService
test_class.var_name: schedulerService
test_class.declarator: emailServiceClient
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private EmailServiceClient emailServiceClient;
test_class.type: EmailServiceClient
test_class.var_name: emailServiceClient
test_class.file: services/task-server/src/test/java/com/opencloud/task/server/service/SchedulerServiceTest.java
test_class.identifier: SchedulerServiceTest
test_class.superclass: extends BaseTest
test_case.body: @Test
      public void getJobList() {
          List<TaskInfo> list = schedulerService.getJobList();
      }
test_case.class_method_signature: SchedulerServiceTest.getJobList()
test_case.full_signature: @Test public void getJobList()
test_case.identifier: getJobList
test_case.invocations: getJobList
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void getJobList()
focal_class.declarator: scheduler
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private Scheduler scheduler;
focal_class.type: Scheduler
focal_class.var_name: scheduler
focal_class.file: services/task-server/src/main/java/com/opencloud/task/server/service/SchedulerService.java
focal_class.identifier: SchedulerService
focal_class.class_method_signature: SchedulerService.getJobGroupNames()
focal_class.full_signature: public List<String> getJobGroupNames()
focal_class.identifier: getJobGroupNames
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<String>
focal_class.signature: List<String> getJobGroupNames()
focal_class.class_method_signature: SchedulerService.getJobList()
focal_class.full_signature: public List<TaskInfo> getJobList()
focal_class.identifier: getJobList
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<TaskInfo>
focal_class.signature: List<TaskInfo> getJobList()
focal_class.class_method_signature: SchedulerService.addSimpleJob(TaskInfo info)
focal_class.full_signature: public void addSimpleJob(TaskInfo info)
focal_class.identifier: addSimpleJob
focal_class.modifiers: public
focal_class.parameters: (TaskInfo info)
focal_class.return: void
focal_class.signature: void addSimpleJob(TaskInfo info)
focal_class.class_method_signature: SchedulerService.addCronJob(TaskInfo info)
focal_class.full_signature: public void addCronJob(TaskInfo info)
focal_class.identifier: addCronJob
focal_class.modifiers: public
focal_class.parameters: (TaskInfo info)
focal_class.return: void
focal_class.signature: void addCronJob(TaskInfo info)
focal_class.class_method_signature: SchedulerService.editSimpleJob(TaskInfo info)
focal_class.full_signature: public void editSimpleJob(TaskInfo info)
focal_class.identifier: editSimpleJob
focal_class.modifiers: public
focal_class.parameters: (TaskInfo info)
focal_class.return: void
focal_class.signature: void editSimpleJob(TaskInfo info)
focal_class.class_method_signature: SchedulerService.editCronJob(TaskInfo info)
focal_class.full_signature: public void editCronJob(TaskInfo info)
focal_class.identifier: editCronJob
focal_class.modifiers: public
focal_class.parameters: (TaskInfo info)
focal_class.return: void
focal_class.signature: void editCronJob(TaskInfo info)
focal_class.class_method_signature: SchedulerService.deleteJob(String jobName, String jobGroup)
focal_class.full_signature: public void deleteJob(String jobName, String jobGroup)
focal_class.identifier: deleteJob
focal_class.modifiers: public
focal_class.parameters: (String jobName, String jobGroup)
focal_class.return: void
focal_class.signature: void deleteJob(String jobName, String jobGroup)
focal_class.class_method_signature: SchedulerService.pauseJob(String jobName, String jobGroup)
focal_class.full_signature: public void pauseJob(String jobName, String jobGroup)
focal_class.identifier: pauseJob
focal_class.modifiers: public
focal_class.parameters: (String jobName, String jobGroup)
focal_class.return: void
focal_class.signature: void pauseJob(String jobName, String jobGroup)
focal_class.class_method_signature: SchedulerService.resumeJob(String jobName, String jobGroup)
focal_class.full_signature: public void resumeJob(String jobName, String jobGroup)
focal_class.identifier: resumeJob
focal_class.modifiers: public
focal_class.parameters: (String jobName, String jobGroup)
focal_class.return: void
focal_class.signature: void resumeJob(String jobName, String jobGroup)
focal_class.class_method_signature: SchedulerService.checkExists(String jobName, String jobGroup)
focal_class.full_signature: private boolean checkExists(String jobName, String jobGroup)
focal_class.identifier: checkExists
focal_class.modifiers: private
focal_class.parameters: (String jobName, String jobGroup)
focal_class.return: boolean
focal_class.signature: boolean checkExists(String jobName, String jobGroup)
focal_method.body: public List<TaskInfo> getJobList() {
          List<TaskInfo> list = new ArrayList<>();
          try {
              for (String groupJob : getJobGroupNames()) {
                  for (JobKey jobKey : scheduler.getJobKeys(GroupMatcher.<JobKey>groupEquals(groupJob))) {
                      List<? extends Trigger> triggers = scheduler.getTriggersOfJob(jobKey);
                      for (Trigger trigger : triggers) {
                          Trigger.TriggerState triggerState = scheduler.getTriggerState(trigger.getKey());
                          JobDetail jobDetail = scheduler.getJobDetail(jobKey);
                          String cronExpression = "";
                          Date createTime = null;
                          Long repeatInterval = 0L;
                          Integer repeatCount = 0;
                          Date startDate = null;
                          Date endDate = null;
                          if (trigger instanceof CronTrigger) {
                              CronTrigger cronTrigger = (CronTrigger) trigger;
                              cronExpression = cronTrigger.getCronExpression();
                          } else if (trigger instanceof SimpleTrigger) {
                              SimpleTrigger simpleTrigger = (SimpleTrigger) trigger;
                              repeatInterval = simpleTrigger.getRepeatInterval();
                              repeatCount = simpleTrigger.getRepeatCount();
                              startDate = simpleTrigger.getStartTime();
                              endDate = simpleTrigger.getEndTime();
                          }
                          TaskInfo info = new TaskInfo();
                          info.setData(jobDetail.getJobDataMap());
                          info.setJobName(jobKey.getName());
                          info.setJobTrigger(trigger.getClass().getName());
                          info.setJobGroupName(jobKey.getGroup());
                          info.setJobClassName(jobDetail.getJobClass().getName());
                          info.setJobDescription(jobDetail.getDescription());
                          info.setJobStatus(triggerState.name());
                          info.setCronExpression(cronExpression);
                          info.setCreateTime(createTime);
                          info.setRepeatInterval(repeatInterval);
                          info.setRepeatCount(repeatCount);
                          info.setStartDate(startDate);
                          info.setEndDate(endDate);
                          list.add(info);
                      }
                  }
              }
          } catch (SchedulerException e) {
              e.printStackTrace();
          }
          return list;
      }
focal_method.class_method_signature: SchedulerService.getJobList()
focal_method.full_signature: public List<TaskInfo> getJobList()
focal_method.identifier: getJobList
focal_method.invocations: getJobGroupNames getJobKeys groupEquals getTriggersOfJob getTriggerState getKey getJobDetail getCronExpression getRepeatInterval getRepeatCount getStartTime getEndTime setData getJobDataMap setJobName getName setJobTrigger getName getClass setJobGroupName getGroup setJobClassName getName getJobClass setJobDescription getDescription setJobStatus name setCronExpression setCreateTime setRepeatInterval setRepeatCount setStartDate setEndDate add printStackTrace
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: List<TaskInfo>
focal_method.signature: List<TaskInfo> getJobList()