public class LoggingExecutionListener<T,S> extends AbstractLoggingExecutionListener implements org.springframework.batch.core.StepExecutionListener, org.springframework.batch.core.ChunkListener, org.springframework.batch.core.ItemReadListener<T>, org.springframework.batch.core.ItemProcessListener<T,S>, org.springframework.batch.core.ItemWriteListener<S>, org.springframework.batch.core.SkipListener<T,S>
LOGGER| Constructor and Description |
|---|
LoggingExecutionListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterChunk(org.springframework.batch.core.scope.context.ChunkContext context) |
void |
afterChunkError(org.springframework.batch.core.scope.context.ChunkContext context) |
void |
afterProcess(T item,
S result) |
void |
afterRead(T item) |
org.springframework.batch.core.ExitStatus |
afterStep(org.springframework.batch.core.StepExecution stepExecution) |
void |
afterWrite(List<? extends S> items) |
void |
beforeChunk(org.springframework.batch.core.scope.context.ChunkContext context) |
void |
beforeProcess(T item) |
void |
beforeRead() |
void |
beforeStep(org.springframework.batch.core.StepExecution stepExecution) |
void |
beforeWrite(List<? extends S> items) |
void |
onProcessError(T item,
Exception e) |
void |
onReadError(Exception ex) |
void |
onSkipInProcess(T item,
Throwable t) |
void |
onSkipInRead(Throwable t) |
void |
onSkipInWrite(S item,
Throwable t) |
void |
onWriteError(Exception exception,
List<? extends S> items) |
getChunkLogger, getJobLogger, getLogger, getProcessLogger, getReadLogger, getStepLogger, getWriteLogger, setLoggerNamespublic void beforeStep(org.springframework.batch.core.StepExecution stepExecution)
beforeStep in interface org.springframework.batch.core.StepExecutionListenerpublic org.springframework.batch.core.ExitStatus afterStep(org.springframework.batch.core.StepExecution stepExecution)
afterStep in interface org.springframework.batch.core.StepExecutionListenerpublic void afterRead(T item)
afterRead in interface org.springframework.batch.core.ItemReadListener<T>public void beforeRead()
beforeRead in interface org.springframework.batch.core.ItemReadListener<T>public void onReadError(Exception ex)
onReadError in interface org.springframework.batch.core.ItemReadListener<T>public void afterWrite(List<? extends S> items)
afterWrite in interface org.springframework.batch.core.ItemWriteListener<S>public void beforeWrite(List<? extends S> items)
beforeWrite in interface org.springframework.batch.core.ItemWriteListener<S>public void onWriteError(Exception exception, List<? extends S> items)
onWriteError in interface org.springframework.batch.core.ItemWriteListener<S>public void beforeProcess(T item)
public void onSkipInRead(Throwable t)
public void beforeChunk(org.springframework.batch.core.scope.context.ChunkContext context)
beforeChunk in interface org.springframework.batch.core.ChunkListenerpublic void afterChunk(org.springframework.batch.core.scope.context.ChunkContext context)
afterChunk in interface org.springframework.batch.core.ChunkListenerpublic void afterChunkError(org.springframework.batch.core.scope.context.ChunkContext context)
afterChunkError in interface org.springframework.batch.core.ChunkListenerCopyright © 2016. All rights reserved.