Dab tsi yog qhov kev ua tiav hauv Spring Batch?
Dab tsi yog qhov kev ua tiav hauv Spring Batch?

Video: Dab tsi yog qhov kev ua tiav hauv Spring Batch?

Video: Dab tsi yog qhov kev ua tiav hauv Spring Batch?
Video: Leng Yang - Yog Vim Dab Tsi (Official Full Song | Nkauj Tawm Tshiab) 2020/05/24 2024, Kaum ib hlis
Anonim

Ib ExecutionContext yog ib pawg ntawm cov tseem ceeb-tus nqi khub uas muaj cov ntaub ntawv uas yog scoped rau StepExecution los yog JobExecution. Caij nplooj ntoos hlav Batch mob siab rau ExecutionContext , uas yuav pab tau thaum koj xav rov pib dua a pawg khiav (piv txwv li, thaum muaj kev ua yuam kev tuag, thiab lwm yam).

Hauv qhov no, Stepexecutioncontext hauv Spring Batch yog dab tsi?

pej xeem chav kawm StepExecution Extens Qhov Chaw. Batch domain object sawv cev rau kev ua tiav ntawm ib kauj ruam. Tsis zoo li JobExecution, muaj cov khoom ntxiv ntsig txog kev ua cov khoom xws li kev suav suav, thiab lwm yam.

Ib yam li ntawd, dab tsi yog chunk hauv Spring Batch? Caij nplooj ntoos hlav Batch siv ib ' Khawm -oriented' ua style nyob rau hauv nws feem ntau siv. Khawm oriented processing hais txog kev nyeem cov ntaub ntawv ib zaug thiab tsim ' tej kab ' uas tau sau tawm hauv ib thaj tsam kev sib pauv. Ib yam khoom yog nyeem los ntawm ItemReader, xa mus rau ItemProcessor, thiab sib sau ua ke.

Raws li, StepScope hauv Spring Batch yog dab tsi?

A caij nplooj ntoos hlav batch StepScope khoom yog ib qho tshwj xeeb rau ib kauj ruam tshwj xeeb thiab tsis yog ib qho singleton. Tab sis los ntawm kev qhia a caij nplooj ntoos hlav batch tiv thaiv StepScope txhais tau tias Caij nplooj ntoos hlav Batch yuav siv lub caij nplooj ntoos hlav thawv kom instantiate ib qho piv txwv tshiab ntawm cov khoom ntawd rau txhua kauj ruam ua.

Dab tsi yog qhov chaw ua haujlwm hauv Spring Batch?

1.2 JobRepository . Raws li lub npe qhia nws yog a chaw cia khoom uas muaj ib tug persistence mechanism rau tag nrho cov meta-cov ntaub ntawv muaj feem xyuam rau kev ua ntawm lub Txoj hauj lwm . 'data-source' tuaj yeem teeb tsa los taw tes rau cov ntaub ntawv siv los khaws cia pawg meta-data entities.

Pom zoo: