GithubHelp home page GithubHelp logo

spring-boot-batch's Introduction

Spring-boot-batch

기능적 요소

  • 배치작업의 재시도, 재시작, 건너뛰기 등의 정책을 설정 가능
  • Commit 개수, Rollback 개수, 재시도 횟수 등 배치 실행 통계정보를 제공

구성 요소

  • Job repository: Job Execution 관련 메타데이터를 저장하는 기반 컴포넌트
  • Job Launcher: Job Execution을 실행하는 기반 컴포넌트
  • Job: 배치 처리를 의미하는 어플리케이션 컴포넌트(Step은 Job의 각 단계)
  • Tasklet: Step내에서 반복 또는 트랜잭션 처리 용도로 사용되는 단일 연산

이슈 사례

Spring-Batch needs a datasource that is registered under the name "dataSource" in the spring-context. If no spring-bean with that name is found, it creates its own. [http://stackoverflow.com/questions/37626682/spring-datasource-initialize-false-not-working]

afterPropertiesSet()

afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean 스프링은 InitializingBean 인터페이스에 정의된 메서드를 호출해서 빈 객체가 초기화를 진행할 수 있도록 한다.

JobExplorer

JobRepository에 접근하여 배치작업에 대한 정보를 얻는 것

  • ReadOnly, 그래서 Getter밖에 없다.

JobRepository

배치 작업중의 정보를 저장하는 역할을 수행함, 어떤 job이 언제 수행되고 언제 끝났고, 몇번 수행되었는지 배치 작업 수행과 관련된 모든 metadata가 저장되어 있다. CRUD를 지원

MapJobExplorerFactoryBean

A FactoryBean that automates the creation of a SimpleJobExplorer using in-memory DAO implementations.

spring-boot-batch's People

Contributors

dwpark1112 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.