public abstract class StepExecutionSupport extends Object implements org.springframework.batch.core.StepExecutionListener
| Modifier and Type | Field and Description |
|---|---|
static String |
ERRORS_KEY |
static String |
ITEMS_READ_KEY |
| Constructor and Description |
|---|
StepExecutionSupport() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addError(String error) |
protected void |
addToItemsRead(long value) |
protected void |
addToLong(String key,
long value)
Adds the specified value to the existing key.
|
org.springframework.batch.core.ExitStatus |
afterStep(org.springframework.batch.core.StepExecution stepExecution) |
void |
beforeStep(org.springframework.batch.core.StepExecution stepExecution) |
protected void |
clearErrors() |
protected void |
failExecution() |
protected List<String> |
getErrors() |
protected org.springframework.batch.item.ExecutionContext |
getExecutionContext() |
protected long |
getItemsRead() |
protected long |
getLongValue(String key) |
protected org.springframework.batch.core.StepExecution |
getStepExecution() |
protected void |
resetContextState() |
void |
setIsTest() |
protected void |
skipLinesAlreadyRead(Iterator it)
Skips the iterator ahead to the items read value stored in the execution context
|
protected List<String> |
verifySpace(SpaceManifestDpnManifestVerifier verifier) |
public static String ITEMS_READ_KEY
public static final String ERRORS_KEY
protected org.springframework.batch.item.ExecutionContext getExecutionContext()
protected void addError(String error)
protected void clearErrors()
protected void resetContextState()
protected List<String> getErrors()
protected void addToItemsRead(long value)
protected long getItemsRead()
protected void skipLinesAlreadyRead(Iterator it)
it - any iteratorpublic void beforeStep(org.springframework.batch.core.StepExecution stepExecution)
beforeStep in interface org.springframework.batch.core.StepExecutionListenerprotected org.springframework.batch.core.StepExecution getStepExecution()
protected void failExecution()
public org.springframework.batch.core.ExitStatus afterStep(org.springframework.batch.core.StepExecution stepExecution)
afterStep in interface org.springframework.batch.core.StepExecutionListenerprotected void addToLong(String key, long value)
key - value - protected long getLongValue(String key)
protected List<String> verifySpace(SpaceManifestDpnManifestVerifier verifier)
public void setIsTest()
Copyright © 2014–2015 DuraSpace. All rights reserved.