Add sample JobParametersIncrementer for JMX demo

This commit is contained in:
dsyer
2008-10-07 10:32:51 +00:00
parent 7ad93d227e
commit c5444c4fe9
4 changed files with 46 additions and 4 deletions

View File

@@ -21,7 +21,7 @@ import java.io.ObjectInputStream;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Date;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.List;
import org.springframework.batch.item.ExecutionContext;
@@ -37,7 +37,7 @@ public class JobExecution extends Entity {
private JobInstance jobInstance;
private volatile Collection<StepExecution> stepExecutions = new HashSet<StepExecution>();
private volatile Collection<StepExecution> stepExecutions = new LinkedHashSet<StepExecution>();
private volatile BatchStatus status = BatchStatus.STARTING;

View File

@@ -16,12 +16,12 @@
package org.springframework.batch.core.launch.support;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.LinkedHashMap;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.TreeSet;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
@@ -150,7 +150,7 @@ public class SimpleJobOperator implements JobOperator, InitializingBean {
* @see org.springframework.batch.core.launch.JobOperator#getJobNames()
*/
public Set<String> getJobNames() {
return new HashSet<String>(jobRegistry.getJobNames());
return new TreeSet<String>(jobRegistry.getJobNames());
}
/*