Renamed JobExplorer#getJobInstancesByName to JobExplorer#findJobInstancesByName
This commit is contained in:
@@ -15,15 +15,15 @@
|
||||
*/
|
||||
package org.springframework.batch.core.explore;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
import org.springframework.batch.core.JobExecution;
|
||||
import org.springframework.batch.core.JobInstance;
|
||||
import org.springframework.batch.core.StepExecution;
|
||||
import org.springframework.batch.core.launch.NoSuchJobException;
|
||||
import org.springframework.batch.item.ExecutionContext;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* Entry point for browsing executions of running or historical jobs and steps.
|
||||
* Since the data may be re-hydrated from persistent storage, it may not contain
|
||||
@@ -118,7 +118,7 @@ public interface JobExplorer {
|
||||
* @param count
|
||||
* @return
|
||||
*/
|
||||
List<JobInstance> getJobInstancesByJobName(String jobName, int start, int count);
|
||||
List<JobInstance> findJobInstancesByJobName(String jobName, int start, int count);
|
||||
|
||||
/**
|
||||
* Query the repository for the number of unique {@link JobInstance}s
|
||||
|
||||
@@ -16,9 +16,6 @@
|
||||
|
||||
package org.springframework.batch.core.explore.support;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
import org.springframework.batch.core.JobExecution;
|
||||
import org.springframework.batch.core.JobInstance;
|
||||
import org.springframework.batch.core.StepExecution;
|
||||
@@ -29,6 +26,9 @@ import org.springframework.batch.core.repository.dao.JobExecutionDao;
|
||||
import org.springframework.batch.core.repository.dao.JobInstanceDao;
|
||||
import org.springframework.batch.core.repository.dao.StepExecutionDao;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* Implementation of {@link JobExplorer} using the injected DAOs.
|
||||
*
|
||||
@@ -210,7 +210,7 @@ public class SimpleJobExplorer implements JobExplorer {
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<JobInstance> getJobInstancesByJobName(String jobName, int start, int count) {
|
||||
public List<JobInstance> findJobInstancesByJobName(String jobName, int start, int count) {
|
||||
return jobInstanceDao.findJobInstancesByName(jobName, start, count);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,18 +15,6 @@
|
||||
*/
|
||||
package org.springframework.batch.core.launch.support;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Properties;
|
||||
import java.util.Set;
|
||||
|
||||
import org.junit.After;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
@@ -47,6 +35,18 @@ import org.springframework.batch.core.repository.JobExecutionAlreadyRunningExcep
|
||||
import org.springframework.batch.core.step.JobRepositorySupport;
|
||||
import org.springframework.util.ClassUtils;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Properties;
|
||||
import java.util.Set;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
/**
|
||||
* @author Lucas Ward
|
||||
*
|
||||
@@ -487,7 +487,7 @@ public class CommandLineJobRunnerTests {
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<JobInstance> getJobInstancesByJobName(String jobName, int start, int count) {
|
||||
public List<JobInstance> findJobInstancesByJobName(String jobName, int start, int count) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user