# 任务调度中心

<#import "/common/common.macro.ftl" as netCommon> <@netCommon.commonStyle />
<#if !jobInfo?exists>

# 抱歉，任务不存在.

<#else>

# 任务调度中心任务GLUE管理

${jobInfo.glueSource} <#if jobLogGlues?exists && jobLogGlues?size gt 0 > <#list jobLogGlues as glue> ${glue.glueSource}
<@netCommon.commonFooter />
package com.xxl.job.service.handler; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.xxl.job.client.handler.IJobHandler; import com.xxl.job.client.handler.IJobHandler.JobHandleStatus; public class DemoJobHandler extends IJobHandler { private static transient Logger logger = LoggerFactory.getLogger(DemoJobHandler.class); @Override public JobHandleStatus handle(String... params) throws Exception { logger.info("XXL-JOB, Hello World."); return JobHandleStatus.SUCCESS; } } <@netCommon.comAlert /> <@netCommon.commonScript />