Class GlueTaskScheduler
java.lang.Object
com.poscoict.glueframework.scheduling.task.GlueTaskScheduler
- All Implemented Interfaces:
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
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.
-
Constructor Details
-
GlueTaskScheduler
public GlueTaskScheduler()
-
-
Method Details
-
setServiceName
setter method for DI.- Parameters:
serviceName
-
-
setDataMap
setter method for DI.- Parameters:
dataMap
-
-
setLogger
setter method for DI.- Parameters:
logger
-
-
doGlueService
- Throws:
Exception
-
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceInitializingBean
- Throws:
Exception
-