com.poscoict.glueframework.scheduling.task
Class GlueTaskScheduler

java.lang.Object
  extended by com.poscoict.glueframework.scheduling.task.GlueTaskScheduler
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean

public class GlueTaskScheduler
extends Object
implements org.springframework.beans.factory.InitializingBean

Glue Scheduler(Spring SchedulerÀÌ¿ë)ÀÇ Task ±¸Çö ClassÀÌ´Ù.
¼³Á¤ ¹æ¹ýÀº ´ÙÀ½ ¿¹¸¦ Âü°íÇÑ´Ù.

 Bean Property
 
 - serviceName : (Çʼö)
 
 - contextMap : (¼±ÅÃ) 
 
 - logger : (¼±ÅÃ)
 
 
 
 ¿¹Á¦
 »ç¿ë ¿¹# 1
 
     <bean id="gluetask" class="com.poscoict.glueframework.scheduling.task.GlueTaskScheduler">
         <property name="serviceName" value="sample01-service"/>
         <property name="dataMap">
             <map>
                 <entry key="deptno" value="10"/>
                 <entry key="find" value="1"/>
             </map>
         </property>
         <property name="logger" ref="dbLogging"/>
     </bean>
     <bean id="dbLogging" class="com.poscoict.glueframework.scheduling.store.GlueTaskSchedulerInfoLogger">
         <property name="dataSource" ref="ds"/>
     </bean>
     <bean id="ds" class="..."/>
 


Constructor Summary
GlueTaskScheduler()
           
 
Method Summary
 void afterPropertiesSet()
           
 void doGlueService()
           
 void setDataMap(Map<String,Object> dataMap)
          setter method for DI.
 void setLogger(GlueScheduledTaskLogger logger)
          setter method for DI.
 void setServiceName(String serviceName)
          setter method for DI.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlueTaskScheduler

public GlueTaskScheduler()
Method Detail

setServiceName

public void setServiceName(String serviceName)
setter method for DI.

Parameters:
serviceName -

setDataMap

public void setDataMap(Map<String,Object> dataMap)
setter method for DI.

Parameters:
dataMap -

setLogger

public void setLogger(GlueScheduledTaskLogger logger)
setter method for DI.

Parameters:
logger -

doGlueService

public void doGlueService()
                   throws Exception
Throws:
Exception

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception


Copyright © 2013–2015 POSCO ICT SWÁ¦Ç°±â¼úÆÀ. All rights reserved.