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 : (¼±ÅÃ)
 
 
 
 
  »ç¿ë¿¹
  <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="dataSource"/>
  </bean>
  <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
      <property name="driverClassName" value="..."/>
      <property name="url" value="..."/>
      <property name="username" value="..."/>
      <property name="password" value="..."/>
      <property name="defaultAutoCommit" value="true"/>
  </bean>
 
 


Constructor Summary
GlueTaskScheduler()
           
 
Method Summary
 void afterPropertiesSet()
           
 void doGlueService()
           
 void setDataMap(Map<String,Object> dataMap)
           
 void setLogger(GlueScheduledTaskLogger logger)
           
 void setServiceName(String serviceName)
           
 
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)

setDataMap

public void setDataMap(Map<String,Object> dataMap)

setLogger

public void setLogger(GlueScheduledTaskLogger 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–2014 POSCO ICT SWÁ¦Ç°±â¼úÆÀ. All rights reserved.