kr.co.hit.live.batch
Class AbstractBatchJob

java.lang.Object
  extended by kr.co.hit.live.context.ContextAwareService
      extended by kr.co.hit.live.batch.AbstractBatchJob
All Implemented Interfaces:
BatchJob

public abstract class AbstractBatchJob
extends ContextAwareService
implements BatchJob

배치 프로그램은 이 클래스를 상속받아 구현한다.

Author:
kimhd

Field Summary
protected  BatchLogger logger
           
protected  ValueObject paramVO
           
 
Constructor Summary
AbstractBatchJob()
           
 
Method Summary
abstract  void execute(ValueObject pVO)
          배치 프로그램의 메인 로직을 구현하는 메소드
 BatchLogger getLogger()
          setLogger()를 통하여 설정된 BatchLogger 객체를 반환함.
 void setLogger(BatchLogger logger)
          배치 프로그램 실행시 로깅관련 기능들을 사용하기 위하여 BatchLogger 객체를 설정하는 Setter Method
 
Methods inherited from class kr.co.hit.live.context.ContextAwareService
getApplicationContext, getDiagnosticContext, getServiceContext, getUserTransaction, setMessage, setMessage, setMessage, setMessage, setMessage, setRollbackOnly
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface kr.co.hit.live.batch.BatchJob
preProcess
 

Field Detail

logger

protected BatchLogger logger

paramVO

protected ValueObject paramVO
Constructor Detail

AbstractBatchJob

public AbstractBatchJob()
Method Detail

setLogger

public void setLogger(BatchLogger logger)
Description copied from interface: BatchJob
배치 프로그램 실행시 로깅관련 기능들을 사용하기 위하여 BatchLogger 객체를 설정하는 Setter Method

Specified by:
setLogger in interface BatchJob

getLogger

public BatchLogger getLogger()
Description copied from interface: BatchJob
setLogger()를 통하여 설정된 BatchLogger 객체를 반환함.

Specified by:
getLogger in interface BatchJob
Returns:

execute

public abstract void execute(ValueObject pVO)
                      throws Exception
Description copied from interface: BatchJob
배치 프로그램의 메인 로직을 구현하는 메소드

Specified by:
execute in interface BatchJob
Throws:
Exception


Copyright © 2014. All Rights Reserved.