更新Demo代码

v1.3
xueli.xue 9 years ago
parent cd32557db0
commit 7b9d505f66

@ -162,14 +162,14 @@ package com.xxl.job.service.handler;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import com.xxl.job.client.handler.IJobHandler; import com.xxl.job.core.handler.IJobHandler;
import com.xxl.job.client.handler.IJobHandler.JobHandleStatus; import com.xxl.job.core.handler.IJobHandler.JobHandleStatus;
public class DemoJobHandler extends IJobHandler { public class DemoJobHandler extends IJobHandler {
private static transient Logger logger = LoggerFactory.getLogger(DemoJobHandler.class); private static transient Logger logger = LoggerFactory.getLogger(DemoJobHandler.class);
@Override @Override
public JobHandleStatus handle(String... params) throws Exception { public JobHandleStatus execute(String... params) throws Exception {
logger.info("XXL-JOB, Hello World."); logger.info("XXL-JOB, Hello World.");
return JobHandleStatus.SUCCESS; return JobHandleStatus.SUCCESS;
} }

Loading…
Cancel
Save