Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はxml形式を使用してSpringのスケジュールされたタスクを使用しています(具体的には25.4.3「スケジュールされたタスク」要素の下)
このタスク スケジューラから「最終実行時間」、「最終完了時間」などのメタデータを取得する方法はありますか?
いいえ、私が知っていることではありません。それが Java 5 のエグゼキュータ サービス上の単なる薄い層に過ぎないのであれば、私は驚かれることでしょう。
org.springframework.scheduling.config.ScheduledTaskRegistrar私たちはかつて同様の要件 (スケジュールされたタスクが次に実行される時間を調べること) を持っていたことがあり、リフレクションを介して掘り下げることになりました。多分これは出発点です。
org.springframework.scheduling.config.ScheduledTaskRegistrar