接口 TaskPlatformService


  • public interface TaskPlatformService
    Created by wizzer on 2018/3/19.
    • 方法详细资料

      • isExist

        boolean isExist​(String jobName,
                        String jobGroup)
        判断任务是否存在
        参数:
        jobName -
        jobGroup -
        返回:
      • add

        void add​(String jobName,
                 String jobGroup,
                 String className,
                 String cron,
                 String comment,
                 String dataMap)
        添加新任务
        参数:
        jobName -
        jobGroup -
        className -
        cron -
        comment -
        dataMap -
      • delete

        boolean delete​(String jobName,
                       String jobGroup)
        删除任务
        参数:
        jobName -
        jobGroup -
        返回:
      • clear

        void clear()
        清除所有任务
      • getCronExeTimes

        List<String> getCronExeTimes​(String cronExpression)
                              throws Exception
        获取cron表达式最近执行时间
        参数:
        cronExpression -
        返回:
        抛出:
        Exception