This commit is contained in:
wangkang
2017-07-29 10:18:36 +08:00
parent 2e13349960
commit 5661512ece
@@ -0,0 +1,40 @@
/**
* SchedulerService.java
* Created at 2017-06-02
* Created by Administrator
* Copyright (C) 2016 egridcloud.com, All rights reserved.
*/
package com.egridcloud.udf.scheduler.service;
import org.quartz.SchedulerException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.scheduling.quartz.SchedulerFactoryBean;
import org.springframework.stereotype.Service;
/**
* 描述 : SchedulerService
*
* @author Administrator
*
*/
@Service
public class SchedulerService {
/**
* 描述 : SchedulerFactoryBean
*/
@Autowired
@Qualifier("clusterQuartzScheduler")
private SchedulerFactoryBean s;
/**
* 描述 : 清理
*
* @throws SchedulerException SchedulerException
*/
public void clear() throws SchedulerException {
this.s.getScheduler().clear();
}
}