|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.batch.integration.job.JobExecutionRequest
public class JobExecutionRequest
Encapsulation of a request to execute a job execution through a message flow
consisting of step handlers. A handler should pass the message on as it is,
modifying the request properties as necessary. Generally a handler will
execute a step as part of the JobExecution passed in, and should
change the status to BatchStatus.COMPLETED if the step is successful
(generally a handler cannot determine if the whole job execution is complete,
so this is just information about the step).
If the incoming status is BatchStatus.FAILED,
BatchStatus.STOPPED or BatchStatus.STOPPING the request
should be ignored by handlers (passed on without modification).
| Constructor Summary | |
|---|---|
JobExecutionRequest(JobExecution jobExecution)
|
|
| Method Summary | |
|---|---|
JobExecution |
getJobExecution()
Public getter for the jobExecution. |
Long |
getJobId()
|
Throwable |
getLastThrowable()
Public getter for the throwable. |
BatchStatus |
getStatus()
|
boolean |
hasErrors()
|
void |
registerThrowable(Throwable throwable)
Public setter for the throwable. |
void |
setStatus(BatchStatus status)
Public setter for the status. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JobExecutionRequest(JobExecution jobExecution)
jobExecution - | Method Detail |
|---|
public Long getJobId()
public BatchStatus getStatus()
BatchStatuspublic void setStatus(BatchStatus status)
status - the status to setpublic boolean hasErrors()
public Throwable getLastThrowable()
public void registerThrowable(Throwable throwable)
throwable - the throwable to setpublic JobExecution getJobExecution()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||