|
|
|
@ -74,7 +74,7 @@ public class SysJobServiceImpl implements ISysJobService
|
|
|
|
|
* @param job 调度信息
|
|
|
|
|
*/
|
|
|
|
|
@Override
|
|
|
|
|
@Transactional
|
|
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
|
|
public int pauseJob(SysJob job) throws SchedulerException
|
|
|
|
|
{
|
|
|
|
|
Long jobId = job.getJobId();
|
|
|
|
@ -94,7 +94,7 @@ public class SysJobServiceImpl implements ISysJobService
|
|
|
|
|
* @param job 调度信息
|
|
|
|
|
*/
|
|
|
|
|
@Override
|
|
|
|
|
@Transactional
|
|
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
|
|
public int resumeJob(SysJob job) throws SchedulerException
|
|
|
|
|
{
|
|
|
|
|
Long jobId = job.getJobId();
|
|
|
|
@ -114,7 +114,7 @@ public class SysJobServiceImpl implements ISysJobService
|
|
|
|
|
* @param job 调度信息
|
|
|
|
|
*/
|
|
|
|
|
@Override
|
|
|
|
|
@Transactional
|
|
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
|
|
public int deleteJob(SysJob job) throws SchedulerException
|
|
|
|
|
{
|
|
|
|
|
Long jobId = job.getJobId();
|
|
|
|
@ -134,7 +134,7 @@ public class SysJobServiceImpl implements ISysJobService
|
|
|
|
|
* @return 结果
|
|
|
|
|
*/
|
|
|
|
|
@Override
|
|
|
|
|
@Transactional
|
|
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
|
|
public void deleteJobByIds(Long[] jobIds) throws SchedulerException
|
|
|
|
|
{
|
|
|
|
|
for (Long jobId : jobIds)
|
|
|
|
@ -150,7 +150,7 @@ public class SysJobServiceImpl implements ISysJobService
|
|
|
|
|
* @param job 调度信息
|
|
|
|
|
*/
|
|
|
|
|
@Override
|
|
|
|
|
@Transactional
|
|
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
|
|
public int changeStatus(SysJob job) throws SchedulerException
|
|
|
|
|
{
|
|
|
|
|
int rows = 0;
|
|
|
|
@ -172,7 +172,7 @@ public class SysJobServiceImpl implements ISysJobService
|
|
|
|
|
* @param job 调度信息
|
|
|
|
|
*/
|
|
|
|
|
@Override
|
|
|
|
|
@Transactional
|
|
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
|
|
public void run(SysJob job) throws SchedulerException
|
|
|
|
|
{
|
|
|
|
|
Long jobId = job.getJobId();
|
|
|
|
@ -190,7 +190,7 @@ public class SysJobServiceImpl implements ISysJobService
|
|
|
|
|
* @param job 调度信息 调度信息
|
|
|
|
|
*/
|
|
|
|
|
@Override
|
|
|
|
|
@Transactional
|
|
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
|
|
public int insertJob(SysJob job) throws SchedulerException, TaskException
|
|
|
|
|
{
|
|
|
|
|
job.setStatus(ScheduleConstants.Status.PAUSE.getValue());
|
|
|
|
@ -208,7 +208,7 @@ public class SysJobServiceImpl implements ISysJobService
|
|
|
|
|
* @param job 调度信息
|
|
|
|
|
*/
|
|
|
|
|
@Override
|
|
|
|
|
@Transactional
|
|
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
|
|
public int updateJob(SysJob job) throws SchedulerException, TaskException
|
|
|
|
|
{
|
|
|
|
|
SysJob properties = selectJobById(job.getJobId());
|
|
|
|
|