mirror of
https://gitee.com/wangkang/udf.git
synced 2026-11-01 09:03:42 +00:00
更新
This commit is contained in:
+40
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user