com.poscoict.glueframework.batch.quartz
Class GlueQuartzJobLauncher

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

public class GlueQuartzJobLauncher
extends org.springframework.scheduling.quartz.QuartzJobBean

QuartzJobBean È®Àå(Job Launcher).

 key(jobDataAsMap)
 
 - JobName : (Çʼö) org.springframework.batch.core.Job ¿¡ ÇØ´çÇÏ´Â bean id
 
 - JobLauncherName : (Çʼö) org.springframework.batch.core.launch.JobLauncher ¿¡ ÇØ´çÇÏ´Â bean id
             default : 'jobLauncher'
 
 - ±×¿Ü key Ãß°¡ °¡´É
 
 
 
 ¿¹Á¦
 »ç¿ë ¿¹# 1
 
     <bean id="jobDetail-batch" class="org.springframework.scheduling.quartz.JobDetailBean">
         <property name="jobClass" value="com.poscoict.glueframework.batch.quartz.GlueQuartzJobLauncher"/>
         <property name="jobDataAsMap">
             <map>
                 <entry key="JobName" value="job"/>
             </map>
         </property>
     </bean>
 
 
 »ç¿ë ¿¹# 2
 
     <bean id="jobDetail-batch" class="org.springframework.scheduling.quartz.JobDetailBean">
         <property name="jobClass" value="com.poscoict.glueframework.batch.quartz.GlueQuartzJobLauncher"/>
         <property name="jobDataAsMap">
             <map>
                 <entry key="JobName" value="job"/>
                 <entry key="JobLauncherName" value="jobLauncher"/>
             </map>
         </property>
     </bean>
 
 
 »ç¿ë ¿¹# 3
 
     <bean id="jobDetail-batch" class="org.springframework.scheduling.quartz.JobDetailBean">
         <property name="jobClass" value="com.poscoict.glueframework.batch.quartz.GlueQuartzJobLauncher"/>
         <property name="jobDataAsMap">
             <map>
                 <entry key="JobName" value="job"/>
                 <entry key="JobLauncherName" value="jobLauncher"/>
                 <entry key="deptno" value="10"/>
             </map>
         </property>
     </bean>
 
 
 
 Âü°í : quartz-scheduler.xml
 
     <bean id="scheduler" class="org.springframework.scheduling.quartz.SchedulerFactoryBean" lazy-init="true">
         <property name="triggers">
             <list>
                 <ref local="trigger-1"/>
                 ...
             </list>
         </property>
     </bean>
     <bean id="trigger-1" ...>
         <property name="jobDetail" ref="jobDetail-B"/>
         ...
     </bean>
     <bean id="jobDetail-A" class="org.springframework.scheduling.quartz.JobDetailBean">
         <property name="jobClass" value="com.poscoict.glueframework.scheduling.GlueQuartzJobBean"/>
         <property name="jobDataAsMap">
             <map>
                 <entry key="ServiceName" value="hello-service"/>
             </map>
         </property>
     </bean>
     <bean id="jobDetail-B" class="org.springframework.scheduling.quartz.JobDetailBean">
         <property name="jobClass" value="com.poscoict.glueframework.batch.quartz.GlueQuartzJobLauncher"/>
         ...
     </bean>
 
 
 Âü°í : applicationContext.xml
 
     <bean id="serviceManager" class="com.poscoict.glueframework.biz.control.GlueServiceManagerImpl">
         <property name="serviceLoader" ref="serviceLoader" />
         <property name="cacheManager" ref="cacheManager" />
     </bean>
     <bean id="cacheManager" .../>
     <bean id="serviceLoader" .../>
     <bean id="jobLauncher" .../>
     <batch:job id="job" .../>
 


Field Summary
protected  org.slf4j.Logger logger
           
 
Constructor Summary
GlueQuartzJobLauncher()
           
 
Method Summary
protected  void executeInternal(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

GlueQuartzJobLauncher

public GlueQuartzJobLauncher()
Method Detail

executeInternal

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


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