From 83ea77d66952d52e62b078ff2d02767e48a8eab2 Mon Sep 17 00:00:00 2001 From: dsyer Date: Wed, 21 Nov 2007 08:33:59 +0000 Subject: [PATCH] update description of statistics (http://forum.springframework.org/showthread.php?t=46482). --- .../batch/execution/launch/SimpleJobLauncher.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/execution/src/main/java/org/springframework/batch/execution/launch/SimpleJobLauncher.java b/execution/src/main/java/org/springframework/batch/execution/launch/SimpleJobLauncher.java index 6e8ac78a4..1c738cc57 100644 --- a/execution/src/main/java/org/springframework/batch/execution/launch/SimpleJobLauncher.java +++ b/execution/src/main/java/org/springframework/batch/execution/launch/SimpleJobLauncher.java @@ -489,11 +489,13 @@ public class SimpleJobLauncher implements JobLauncher, InitializingBean, } /** - * Accessor for the job executions passed back in response to a call to - * {@link #requestContextNotification()}. Because the request is - * potentially fulfilled asynchronously, and only on demand, the data might - * be out of date by the time this method is called, so it should be used - * for information purposes only. + * Accessor for the job executions currently in progress (and having been + * started from this launcher). If you launch a job synchronously then it + * will have finished when the {@link #run()} method returns, so there will + * be no statistics. Because the request is potentially fulfilled + * asynchronously, and only on demand, the data might be out of date by the + * time this method is called, so it should be used for information purposes + * only. * * @return Properties representing the {@link JobExecution} objects passed * up from the underlying execution. If there are no jobs running it