Browse Source

更新Demo代码

xueli.xue 9 years ago
parent
commit
7b9d505f66
1 changed files with 3 additions and 3 deletions
  1. 3 3
      xxl-job-admin/src/main/webapp/WEB-INF/template/jobinfo/index.ftl

+ 3 - 3
xxl-job-admin/src/main/webapp/WEB-INF/template/jobinfo/index.ftl View File

@@ -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
 	}