com.poscoict.glueframework.scheduling
Class GlueQuartzJobBean

java.lang.Object
  extended by org.springframework.scheduling.quartz.QuartzJobBean
      extended by com.poscoict.glueframework.scheduling.GlueQuartzJobBean
All Implemented Interfaces:
org.quartz.Job

public class GlueQuartzJobBean
extends QuartzJobBean

QuartzJobBean È®Àå(GlueService ½ÇÇà).
Quartz Scheduler »ç¿ë½Ã JobDetailBeanÀÇ jobClass·Î »ç¿ëÇÑ´Ù.
JobDetailBeanÀÇ jobDataAsMap¿¡´Â ServiceNameÀÌ Ç×»ó ÀÖ¾î¾ß ÇÑ´Ù.

 key(jobDataAsMap)
 
 - ServiceName : (Çʼö) GlueService 
 
 - ±×¿Ü key Ãß°¡ °¡´É
 
 
 
 ¿¹Á¦
 »ç¿ë ¿¹# 1
 
     <bean id="jobDetail-job" class="org.springframework.scheduling.quartz.JobDetailBean">
         <property name="jobClass" value="com.poscoict.glueframework.scheduling.GlueQuartzJobBean"/>
         <property name="jobDataAsMap">
             <map>
                 <entry key="ServiceName" value="job-service"/>
             </map>
         </property>
     </bean>
 
 
 »ç¿ë ¿¹# 2
 
     <bean id="jobDetail-job" class="org.springframework.scheduling.quartz.JobDetailBean">
         <property name="jobClass" value="com.poscoict.glueframework.scheduling.GlueQuartzJobBean"/>
         <property name="jobDataAsMap">
             <map>
                 <entry key="ServiceName" value="job-service"/>
                 <entry key="deptno" value="10"/>
             </map>
         </property>
     </bean>
 


Field Summary
protected  org.slf4j.Logger logger
           
 
Constructor Summary
GlueQuartzJobBean()
           
 
Method Summary
protected  void afterExecuteJob(org.quartz.JobExecutionContext context)
           
protected  void beforeExecuteJob(org.quartz.JobExecutionContext context)
           
protected  void executeInternal(org.quartz.JobExecutionContext context)
           
protected  void executeJob(org.quartz.JobExecutionContext context)
           
 
Methods inherited from class org.springframework.scheduling.quartz.QuartzJobBean
execute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected org.slf4j.Logger logger
Constructor Detail

GlueQuartzJobBean

public GlueQuartzJobBean()
Method Detail

executeInternal

protected final void executeInternal(org.quartz.JobExecutionContext context)
                              throws org.quartz.JobExecutionException
Specified by:
executeInternal in class QuartzJobBean
Throws:
org.quartz.JobExecutionException

executeJob

protected void executeJob(org.quartz.JobExecutionContext context)
Parameters:
context -

beforeExecuteJob

protected void beforeExecuteJob(org.quartz.JobExecutionContext context)
Parameters:
context -

afterExecuteJob

protected void afterExecuteJob(org.quartz.JobExecutionContext context)
Parameters:
context -


Copyright © 2013–2016 POSCO ICT. All rights reserved.