|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.batch.core.partition.support.RemoteStepExecutionAggregator
public class RemoteStepExecutionAggregator
Convenience class for aggregating a set of StepExecution
instances
when the input comes from remote steps, so the data need to be refreshed from
the repository.
Constructor Summary | |
---|---|
RemoteStepExecutionAggregator()
Create a new instance (useful for configuration purposes). |
|
RemoteStepExecutionAggregator(JobExplorer jobExplorer)
Create a new instance with a job explorer that can be used to refresh the data when aggregating. |
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
void |
aggregate(StepExecution result,
Collection<StepExecution> executions)
Aggregates the input executions into the result StepExecution
delegating to the delegate aggregator once the input has been refreshed
from the JobExplorer . |
void |
setDelegate(StepExecutionAggregator delegate)
|
void |
setJobExplorer(JobExplorer jobExplorer)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RemoteStepExecutionAggregator()
public RemoteStepExecutionAggregator(JobExplorer jobExplorer)
jobExplorer
- the JobExplorer
to useMethod Detail |
---|
public void setJobExplorer(JobExplorer jobExplorer)
jobExplorer
- the jobExplorer to setpublic void setDelegate(StepExecutionAggregator delegate)
delegate
- the delegate to setpublic void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
Exception
- if the job explorer is not providedpublic void aggregate(StepExecution result, Collection<StepExecution> executions)
StepExecution
delegating to the delegate aggregator once the input has been refreshed
from the JobExplorer
.
aggregate
in interface StepExecutionAggregator
result
- the result to overwriteexecutions
- the inputs#aggregate(StepExecution, Collection)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |