This repository was archived by the owner on Jan 25, 2019. It is now read-only.
File tree Expand file tree Collapse file tree
src/main/webapp/WEB-INF/classes/META-INF/batch-jobs
simple/src/main/webapp/WEB-INF/classes/META-INF/batch-jobs
src/main/webapp/WEB-INF/classes/META-INF/batch-jobs Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717* business processing part
1818 * apply business logic 1 by 1 -- TODO: How to check --
1919* checkpoints -- TODO: How to check --
20+ * batch artifacts
21+ * Check 'phonebilling.xml'
Original file line number Diff line number Diff line change 55 <property name =" airtime_price" value =" 0.08" />
66 <property name =" tax_rate" value =" 0.07" />
77 </properties >
8+
9+ <!-- Chunk-oriented step -->
810 <step id =" callrecords" next =" bills" >
11+ <!-- next define execution order of the steps -->
912 <chunk checkpoint-policy =" item" item-count =" 10" >
1013 <reader ref =" CallRecordReader" ></reader > <!-- input retrieval part -->
1114 <processor ref =" CallRecordProcessor" ></processor > <!-- business processing part -->
1215 <writer ref =" CallRecordWriter" ></writer > <!-- output writing part -->
1316 </chunk >
1417 </step >
18+
19+ <!-- Chunk-oriented step -->
1520 <step id =" bills" >
1621 <chunk checkpoint-policy =" item" item-count =" 2" >
1722 <reader ref =" BillReader" >
1823 <properties >
1924 <property name =" firstItem" value =" #{partitionPlan['firstItem']}" />
2025 <property name =" numItems" value =" #{partitionPlan['numItems']}" />
2126 </properties >
22- </reader >
23- <processor ref =" BillProcessor" ></processor >
24- <writer ref =" BillWriter" ></writer >
27+ </reader > <!-- batch artifact -->
28+ <processor ref =" BillProcessor" ></processor > <!-- batch artifact -->
29+ <writer ref =" BillWriter" ></writer > <!-- batch artifact -->
2530 </chunk >
2631 <partition >
2732 <mapper ref =" BillPartitionMapper" />
2833 </partition >
2934 <end on =" COMPLETED" />
35+ <!-- end define last step of the job -->
3036 </step >
3137</job >
Original file line number Diff line number Diff line change 55 <property name =" input_file" value =" input.txt" />
66 <property name =" output_file" value =" output.txt" />
77 </properties >
8+
9+ <!-- Chunk-oriented step -->
810 <step id =" mychunk" next =" mytask" >
11+ <!-- next define execution order of the steps -->
912 <chunk >
1013 <reader ref =" MyReader" ></reader >
1114 <processor ref =" MyProcessor" ></processor >
1215 <writer ref =" MyWriter" ></writer >
1316 </chunk >
1417 </step >
18+
19+ <!-- Task-oriented step -->
1520 <step id =" mytask" >
1621 <batchlet ref =" MyBatchlet" ></batchlet >
1722 <end on =" COMPLETED" />
23+ <!-- end define last step of the job -->
1824 </step >
1925</job >
Original file line number Diff line number Diff line change 1+ # Structure
2+ *
3+
4+ # How to run locally?
5+ * ` mvn package `
6+ * set up a glassfish server
7+ * [ Example video1] ( https://www.youtube.com/watch?v=AJxBg90HM4s )
8+ * [ Example video2] ( https://www.youtube.com/watch?v=Z0fB4Mkmi3A )
9+ * run the glassfish server adding 'hello2.war'
10+ * Open in your browser 'localhost:8080' to check that it shows 'index.html'
11+ * TODO: What else?
12+
13+ # Notes
Original file line number Diff line number Diff line change 1313 <listeners >
1414 <listener ref =" InfoJobListener" />
1515 </listeners >
16+
17+ <!-- Chunk-oriented step -->
1618 <step id =" mobilefilter" next =" mobileanalyzer" >
19+ <!-- next define execution order of the steps -->
1720 <listeners >
1821 <listener ref =" InfoItemProcessListener" />
1922 </listeners >
2326 <writer ref =" LogFilteredLineWriter" ></writer >
2427 </chunk >
2528 </step >
29+
30+ <!-- Task-oriented step -->
2631 <step id =" mobileanalyzer" >
2732 <batchlet ref =" MobileBatchlet" ></batchlet >
2833 <end on =" COMPLETED" />
34+ <!-- end define last step of the job -->
2935 </step >
3036</job >
You can’t perform that action at this time.
0 commit comments