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

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


    private QuartzSchedulerProxy schedulerProxy;

    public JobManager() {
        schedulerProxy = new QuartzSchedulerProxy();
    }

    public void setScheduler(Scheduler real) {
        schedulerProxy.setScheduler(real);
    }

    @Override
    public void jobStart(String name, Map<String, String> data) throws ScheduledException {<FILL_FUNCTION_BODY>}

    @Override
    public void jobStop(String name) throws ScheduledException {
        if (jobExists(name)) {
            try {
                schedulerProxy.pause(name);
            } catch (Exception e) {
                throw new ScheduledException(e);
            }
        }
    }

    @Override
    public void jobRemove(String name) throws ScheduledException {
        if (jobExists(name)) {
            super.jobRemove(name);
            try {
                schedulerProxy.remove(name);
            } catch (Exception e) {
                throw new ScheduledException(e);
            }
        }
    }

    @Override
    protected void jobAddCheckDo(String name, Scheduled scheduled) {
        if (Utils.isEmpty(name)) {
            throw new IllegalArgumentException("The job name cannot be empty!");
        }

        if (scheduled.fixedRate() > 0 && Utils.isNotEmpty(scheduled.cron())) {
            throw new IllegalArgumentException("The job cron and fixedRate cannot both have values: " + name);
        }

        if (scheduled.initialDelay() > 0) {
            throw new IllegalArgumentException("The job unsupported initialDelay!");
        }

        if (scheduled.fixedDelay() > 0) {
            throw new IllegalArgumentException("The job unsupported fixedDelay!");
        }
    }

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

        isStarted = true;
    }

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

        if (schedulerProxy != null) {
            schedulerProxy.stop();
            schedulerProxy = null;
        }
    }
}

        JobHolder holder = jobGet(name);

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

            try {
                if (schedulerProxy.exists(name)) {
                    schedulerProxy.resume(name);
                } else {
                    schedulerProxy.register(holder);
                }
            } catch (Exception 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