public class StepExecutionEvent
extends org.springframework.batch.core.Entity
StepExecution
can be serialized
into Json without having to add mixins to an ObjectMapper.Constructor and Description |
---|
StepExecutionEvent() |
StepExecutionEvent(org.springframework.batch.core.StepExecution stepExecution)
Constructor for the StepExecution to initialize the DTO.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
getCommitCount()
Returns the current number of commits for this execution
|
Date |
getEndTime()
Returns the time that this execution ended
|
org.springframework.batch.item.ExecutionContext |
getExecutionContext()
Returns the
ExecutionContext for this execution |
ExitStatus |
getExitStatus() |
List<Throwable> |
getFailureExceptions() |
int |
getFilterCount()
Returns the current number of items filtered out of this execution
|
long |
getJobExecutionId() |
Date |
getLastUpdated() |
int |
getProcessSkipCount() |
int |
getReadCount()
Returns the current number of items read for this execution
|
int |
getReadSkipCount() |
int |
getRollbackCount()
Returns the current number of rollbacks for this execution
|
int |
getSkipCount() |
Date |
getStartTime()
Gets the time this execution started
|
org.springframework.batch.core.BatchStatus |
getStatus()
Returns the current status of this step
|
String |
getStepName() |
String |
getSummary() |
int |
getWriteCount()
Returns the current number of items written for this execution
|
int |
getWriteSkipCount() |
int |
hashCode() |
void |
incrementCommitCount()
Increment the number of commits
|
boolean |
isTerminateOnly() |
void |
setCommitCount(int commitCount)
Sets the current number of commits for this execution
|
void |
setEndTime(Date endTime)
Sets the time that this execution ended
|
void |
setExecutionContext(org.springframework.batch.item.ExecutionContext executionContext)
Sets the
ExecutionContext for this execution |
void |
setExitStatus(ExitStatus exitStatus) |
void |
setFilterCount(int filterCount)
Public setter for the number of items filtered out of this execution.
|
void |
setLastUpdated(Date lastUpdated)
Set the time when the StepExecution was last updated before persisting
|
void |
setProcessSkipCount(int processSkipCount)
Set the number of records skipped during processing.
|
void |
setReadCount(int readCount)
Sets the current number of read items for this execution
|
void |
setReadSkipCount(int readSkipCount)
Set the number of records skipped on read
|
void |
setRollbackCount(int rollbackCount)
Setter for number of rollbacks for this execution
|
void |
setStartTime(Date startTime)
Sets the time this execution started
|
void |
setStatus(org.springframework.batch.core.BatchStatus status)
Sets the current status of this step
|
void |
setStepName(String stepName) |
void |
setTerminateOnly()
Set a flag that will signal to an execution environment that this
execution (and its surrounding job) wishes to exit.
|
void |
setWriteCount(int writeCount)
Sets the current number of written items for this execution
|
void |
setWriteSkipCount(int writeSkipCount)
Set the number of records skipped on write
|
String |
toString() |
public StepExecutionEvent()
public StepExecutionEvent(org.springframework.batch.core.StepExecution stepExecution)
stepExecution
- the StepExecution to build this DTO around.public org.springframework.batch.item.ExecutionContext getExecutionContext()
ExecutionContext
for this executionpublic void setExecutionContext(org.springframework.batch.item.ExecutionContext executionContext)
ExecutionContext
for this executionexecutionContext
- the attributespublic int getCommitCount()
public void setCommitCount(int commitCount)
commitCount
- the current number of commitspublic Date getEndTime()
public void setEndTime(Date endTime)
endTime
- the time that this execution endedpublic int getReadCount()
public void setReadCount(int readCount)
readCount
- the current number of read items for this executionpublic int getWriteCount()
public void setWriteCount(int writeCount)
writeCount
- the current number of written items for this executionpublic int getRollbackCount()
public int getFilterCount()
public void setFilterCount(int filterCount)
filterCount
- the number of items filtered out of this execution to
setpublic void setRollbackCount(int rollbackCount)
public Date getStartTime()
public void setStartTime(Date startTime)
startTime
- the time this execution startedpublic org.springframework.batch.core.BatchStatus getStatus()
public void setStatus(org.springframework.batch.core.BatchStatus status)
status
- the current status of this steppublic void setStepName(String stepName)
public String getStepName()
public void setExitStatus(ExitStatus exitStatus)
exitStatus
- public ExitStatus getExitStatus()
public boolean isTerminateOnly()
public void setTerminateOnly()
public int getSkipCount()
public void incrementCommitCount()
public int getReadSkipCount()
public int getWriteSkipCount()
public void setReadSkipCount(int readSkipCount)
readSkipCount
- public void setWriteSkipCount(int writeSkipCount)
writeSkipCount
- public int getProcessSkipCount()
public void setProcessSkipCount(int processSkipCount)
processSkipCount
- public Date getLastUpdated()
public void setLastUpdated(Date lastUpdated)
lastUpdated
- public long getJobExecutionId()
public boolean equals(Object obj)
equals
in class org.springframework.batch.core.Entity
public int hashCode()
hashCode
in class org.springframework.batch.core.Entity
public String toString()
toString
in class org.springframework.batch.core.Entity
public String getSummary()
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.