|
|
@@ -162,14 +162,14 @@ package com.xxl.job.service.handler;
|
|
162
|
162
|
import org.slf4j.Logger;
|
|
163
|
163
|
import org.slf4j.LoggerFactory;
|
|
164
|
164
|
|
|
165
|
|
-import com.xxl.job.client.handler.IJobHandler;
|
|
166
|
|
-import com.xxl.job.client.handler.IJobHandler.JobHandleStatus;
|
|
|
165
|
+import com.xxl.job.core.handler.IJobHandler;
|
|
|
166
|
+import com.xxl.job.core.handler.IJobHandler.JobHandleStatus;
|
|
167
|
167
|
|
|
168
|
168
|
public class DemoJobHandler extends IJobHandler {
|
|
169
|
169
|
private static transient Logger logger = LoggerFactory.getLogger(DemoJobHandler.class);
|
|
170
|
170
|
|
|
171
|
171
|
@Override
|
|
172
|
|
- public JobHandleStatus handle(String... params) throws Exception {
|
|
|
172
|
+ public JobHandleStatus execute(String... params) throws Exception {
|
|
173
|
173
|
logger.info("XXL-JOB, Hello World.");
|
|
174
|
174
|
return JobHandleStatus.SUCCESS;
|
|
175
|
175
|
}
|