Add sample JobParametersIncrementer for JMX demo
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user