Search in sources :

Example 1 with ReturnTaskSupportTypesVO

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;
}
Also used : EScheduleJobType(com.dtstack.taier.common.enums.EScheduleJobType) ReturnTaskSupportTypesVO(com.dtstack.taier.develop.vo.schedule.ReturnTaskSupportTypesVO)

Aggregations

EScheduleJobType (com.dtstack.taier.common.enums.EScheduleJobType)1 ReturnTaskSupportTypesVO (com.dtstack.taier.develop.vo.schedule.ReturnTaskSupportTypesVO)1