public class BHiveBatchBeanJob extends Object implements org.springframework.beans.factory.InitializingBean, BHiveIntervalCallable
[사용방법]
<bean id="taskBatchJob1" class="bhive.spring.job.BHiveBatchBeanJob">
<constructor-arg index="0" value="was1"/>
<constructor-arg index="1" ref="jobBeanName"/>
<constructor-arg index="2" ref="executor"/>
</bean>
| Modifier and Type | Field and Description |
|---|---|
protected BHiveJobCallable |
batchBean
주기적으로 Job을 처리하는 빈객체
|
protected String |
instanceNameToRunning
배치를 실행할 InstanceName (없거나 null이여도 실행)
|
protected org.slf4j.Logger |
logger |
protected org.springframework.core.task.TaskExecutor |
taskExecutor
로직 반복실행에 사용할 TaskExecutor
|
| Constructor and Description |
|---|
BHiveBatchBeanJob(String instanceNameToRunning,
BHiveJobCallable batchBean,
org.springframework.core.task.TaskExecutor taskExecutor)
생성자
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
doIntervalProcess()
주기적으로 배치 Bean의 Job을 실행
|
void |
runIntervalProcessTask()
refresh 체크를 위한 Task를 시작 (BHiveRefreshCheckTask)
|
protected final org.slf4j.Logger logger
protected String instanceNameToRunning
protected BHiveJobCallable batchBean
protected org.springframework.core.task.TaskExecutor taskExecutor
public BHiveBatchBeanJob(String instanceNameToRunning, BHiveJobCallable batchBean, org.springframework.core.task.TaskExecutor taskExecutor)
instanceNameToRunning - 실행할 서버 WasContainerName (설정시 해당 WasContainer의 인스턴스만 실행됨. WAS Pool에서 특정 WAS에서만 실행하는 기능)batchBean - 주기적으로 실행할 BeantaskExecutor - Job실행에 사용할 taskExecutorpublic void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanpublic void runIntervalProcessTask()
BHiveIntervalCallablerunIntervalProcessTask in interface BHiveIntervalCallablepublic void doIntervalProcess()
doIntervalProcess in interface BHiveIntervalCallabledoIntervalProcess in interface BHiveJobCallableCopyright © 2018. All rights reserved.