|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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,
java.util.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 use| Method Detail |
|---|
public void setJobExplorer(JobExplorer jobExplorer)
jobExplorer - the jobExplorer to setpublic void setDelegate(StepExecutionAggregator delegate)
delegate - the delegate to set
public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exception - if the job explorer is not provided
public void aggregate(StepExecution result,
java.util.Collection<StepExecution> executions)
StepExecution
delegating to the delegate aggregator once the input has been refreshed
from the JobExplorer.
aggregate in interface StepExecutionAggregatorresult - 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 | |||||||||