spring batch read write execution time

…衆ロ難τιáo~ 提交于 2019-12-08 01:30:19

问题


I'm looking best way to measure execution time of Spring Batch read, procced and write action. In Meta-data there are information about whole step but not about each action.

I'm thinking about listeners but is it proper solution ?

Thank you for all of Yours answers!


回答1:


The beforeXXX and afterXXX methods of ItemReadListener, ItemProcessListener and ItemWriteListener interfaces are the correct way to measure in-step performance.

Just initialize your timer at beforeXXX() and output the result at afterXXX() method.



来源:https://stackoverflow.com/questions/11446366/spring-batch-read-write-execution-time

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!