use of com.dtstack.taier.develop.vo.schedule.ReturnTaskSupportTypesVO in project Taier by DTStack.
the class TaskService method querySupportJobTypes.
/**
* 获得所有任务类型
*
* @return 任务类型
*/
public List<ReturnTaskSupportTypesVO> querySupportJobTypes() {
List<ReturnTaskSupportTypesVO> returnTaskSupportTypesVOS = Lists.newArrayList();
EScheduleJobType[] eScheduleJobTypes = EScheduleJobType.values();
for (EScheduleJobType eScheduleJobType : eScheduleJobTypes) {
ReturnTaskSupportTypesVO vo = new ReturnTaskSupportTypesVO();
vo.setTaskTypeName(eScheduleJobType.getName());
vo.setTaskTypeCode(eScheduleJobType.getType());
returnTaskSupportTypesVOS.add(vo);
}
return returnTaskSupportTypesVOS;
}
Aggregations