class JobManager extends AbstractJobManager {
    private static JobManager instance = new JobManager();

    /**
     * 获取实例
     */
    public static JobManager getInstance() {
        return instance;
    }


    @Override
    protected JobHolder jobWrapDo(String name, Scheduled scheduled, JobHandler handler) {
        JobHolder jobHolder = super.jobWrapDo(name, scheduled, handler);
        jobHolder.setAttachment(new SimpleScheduler(jobHolder));

        return jobHolder;
    }

    @Override
    public void jobStart(String name, Map<String, String> data) throws ScheduledException {
        JobHolder jobHolder = jobGet(name);

        if (jobHolder != null) {
            jobHolder.setData(data);

            try {
                ((SimpleScheduler) jobHolder.getAttachment()).start();
            } catch (Throwable e) {
                throw new ScheduledException(e);
            }
        }
    }

    @Override
    public void jobStop(String name) throws ScheduledException {<FILL_FUNCTION_BODY>}

    @Override
    public void start() throws Throwable {
        for (JobHolder holder : jobMap.values()) {
            if (holder.getScheduled().enable()) {
                //只启动启用的（如果有需要，手动启用）
                ((SimpleScheduler) holder.getAttachment()).start();
            }
        }

        isStarted = true;
    }

    @Override
    public void stop() throws Throwable {
        isStarted = false;

        for (JobHolder jobHolder : jobMap.values()) {
            ((SimpleScheduler) jobHolder.getAttachment()).stop();
        }
    }
}

        JobHolder jobHolder = jobGet(name);

        if (jobHolder != null) {
            try {
                ((SimpleScheduler) jobHolder.getAttachment()).stop();
            } catch (Throwable e) {
                throw new ScheduledException(e);
            }
        }
    
<methods>public void <init>() ,public void addJobInterceptor(int, org.noear.solon.scheduling.scheduled.JobInterceptor) ,public List<RankEntity<org.noear.solon.scheduling.scheduled.JobInterceptor>> getJobInterceptors() ,public boolean hasJobInterceptor() ,public boolean isStarted() ,public org.noear.solon.scheduling.scheduled.JobHolder jobAdd(java.lang.String, org.noear.solon.scheduling.annotation.Scheduled, org.noear.solon.scheduling.scheduled.JobHandler) ,public boolean jobExists(java.lang.String) ,public org.noear.solon.scheduling.scheduled.JobHolder jobGet(java.lang.String) ,public Map<java.lang.String,org.noear.solon.scheduling.scheduled.JobHolder> jobGetAll() ,public void jobRemove(java.lang.String) throws org.noear.solon.scheduling.ScheduledException,public void setJobInterceptor(org.noear.solon.scheduling.scheduled.JobInterceptor) <variables>protected boolean isStarted,protected final List<RankEntity<org.noear.solon.scheduling.scheduled.JobInterceptor>> jobInterceptorNodes,protected final Map<java.lang.String,org.noear.solon.scheduling.scheduled.JobHolder> jobMap