public class RemoteStepExecutionAggregator extends Object implements StepExecutionAggregator, org.springframework.beans.factory.InitializingBean
StepExecution
instances
when the input comes from remote steps, so the data need to be refreshed from
the repository.Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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) |
public RemoteStepExecutionAggregator()
public RemoteStepExecutionAggregator(JobExplorer jobExplorer)
jobExplorer
- the JobExplorer
to usepublic 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 org.springframework.beans.factory.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)
Copyright © 2014 Pivotal. All rights reserved.