|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.batch.test.MetaDataInstanceFactory
public class MetaDataInstanceFactory
Convenience methods for creating test instances of JobExecution,
JobInstance and StepExecution.
| Constructor Summary | |
|---|---|
MetaDataInstanceFactory()
|
|
| Method Summary | |
|---|---|
static org.springframework.batch.core.JobExecution |
createJobExecution()
Create a JobExecution with default parameters. |
static org.springframework.batch.core.JobExecution |
createJobExecution(java.lang.Long executionId)
Create a JobExecution with the parameters provided. |
static org.springframework.batch.core.JobExecution |
createJobExecution(java.lang.String jobName,
java.lang.Long instanceId,
java.lang.Long executionId)
Create a JobExecution with the parameters provided. |
static org.springframework.batch.core.JobExecution |
createJobExecution(java.lang.String jobName,
java.lang.Long instanceId,
java.lang.Long executionId,
org.springframework.batch.core.JobParameters jobParameters)
Create a JobExecution with the parameters provided. |
static org.springframework.batch.core.JobExecution |
createJobExecution(java.lang.String jobName,
java.lang.Long instanceId,
java.lang.Long executionId,
java.lang.String jobParameters)
Create a JobExecution with the parameters provided. |
static org.springframework.batch.core.JobExecution |
createJobExecutionWithStepExecutions(java.lang.Long executionId,
java.util.Collection<java.lang.String> stepNames)
Create a JobExecution with the parameters provided with attached
step executions. |
static org.springframework.batch.core.JobInstance |
createJobInstance()
Create a JobInstance with default parameters. |
static org.springframework.batch.core.JobInstance |
createJobInstance(java.lang.String jobName,
java.lang.Long instanceId)
Create a JobInstance with the parameters provided. |
static org.springframework.batch.core.JobInstance |
createJobInstance(java.lang.String jobName,
java.lang.Long instanceId,
org.springframework.batch.core.JobParameters jobParameters)
Create a JobInstance with the parameters provided. |
static org.springframework.batch.core.JobInstance |
createJobInstance(java.lang.String jobName,
java.lang.Long instanceId,
java.lang.String jobParameters)
Create a JobInstance with the parameters provided. |
static org.springframework.batch.core.StepExecution |
createStepExecution()
Create a StepExecution with default parameters. |
static org.springframework.batch.core.StepExecution |
createStepExecution(org.springframework.batch.core.JobExecution jobExecution,
java.lang.String stepName,
java.lang.Long executionId)
Create a StepExecution with the parameters provided. |
static org.springframework.batch.core.StepExecution |
createStepExecution(java.lang.String stepName,
java.lang.Long executionId)
Create a StepExecution with the parameters provided. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MetaDataInstanceFactory()
| Method Detail |
|---|
public static org.springframework.batch.core.JobInstance createJobInstance(java.lang.String jobName,
java.lang.Long instanceId,
java.lang.String jobParameters)
JobInstance with the parameters provided.
jobName - the name of the jobinstanceId - the Id of the JobInstancejobParameters - comma or new line separated name=value pairs
JobInstance
public static org.springframework.batch.core.JobInstance createJobInstance(java.lang.String jobName,
java.lang.Long instanceId,
org.springframework.batch.core.JobParameters jobParameters)
JobInstance with the parameters provided.
jobName - the name of the jobinstanceId - the Id of the JobInstancejobParameters - an instance of JobParameters
JobInstance
public static org.springframework.batch.core.JobInstance createJobInstance(java.lang.String jobName,
java.lang.Long instanceId)
JobInstance with the parameters provided.
jobName - the name of the jobinstanceId - the Id of the JobInstance
JobInstance with empty JobParameterspublic static org.springframework.batch.core.JobInstance createJobInstance()
JobInstance with default parameters.
JobInstance with name="job", id=12L and empty
parameterspublic static org.springframework.batch.core.JobExecution createJobExecution()
JobExecution with default parameters.
JobExecution with id=123Lpublic static org.springframework.batch.core.JobExecution createJobExecution(java.lang.Long executionId)
JobExecution with the parameters provided.
executionId - the id for the JobExecution
JobExecution with valid JobInstance
public static org.springframework.batch.core.JobExecution createJobExecution(java.lang.String jobName,
java.lang.Long instanceId,
java.lang.Long executionId)
JobExecution with the parameters provided.
jobName - the name of the jobinstanceId - the id for the JobInstanceexecutionId - the id for the JobExecution
JobExecution with empty JobParameters
public static org.springframework.batch.core.JobExecution createJobExecution(java.lang.String jobName,
java.lang.Long instanceId,
java.lang.Long executionId,
java.lang.String jobParameters)
JobExecution with the parameters provided.
jobName - the name of the jobinstanceId - the Id of the JobInstanceexecutionId - the id for the JobExecutionjobParameters - comma or new line separated name=value pairs
JobExecution
public static org.springframework.batch.core.JobExecution createJobExecution(java.lang.String jobName,
java.lang.Long instanceId,
java.lang.Long executionId,
org.springframework.batch.core.JobParameters jobParameters)
JobExecution with the parameters provided.
jobName - the name of the jobinstanceId - the Id of the JobInstanceexecutionId - the id for the JobExecutionjobParameters - an instance of JobParameters
JobExecutionpublic static org.springframework.batch.core.StepExecution createStepExecution()
StepExecution with default parameters.
StepExecution with stepName="step" and id=1234L
public static org.springframework.batch.core.StepExecution createStepExecution(java.lang.String stepName,
java.lang.Long executionId)
StepExecution with the parameters provided.
stepName - the stepName for the StepExecutionexecutionId - the id for the StepExecution
StepExecution with a JobExecution having
default properties
public static org.springframework.batch.core.StepExecution createStepExecution(org.springframework.batch.core.JobExecution jobExecution,
java.lang.String stepName,
java.lang.Long executionId)
StepExecution with the parameters provided.
stepName - the stepName for the StepExecutionexecutionId - the id for the StepExecution
StepExecution with the given JobExecution
public static org.springframework.batch.core.JobExecution createJobExecutionWithStepExecutions(java.lang.Long executionId,
java.util.Collection<java.lang.String> stepNames)
JobExecution with the parameters provided with attached
step executions.
executionId - the JobExecution idstepNames - the names of the step executions
JobExecution with step executions as specified, each
with a unique id
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||