@GridInternal public class VisorEventsCollectTask extends VisorMultiNodeTask<VisorEventsCollectTask.VisorEventsCollectArgs,Iterable<? extends VisorGridEvent>,Collection<? extends VisorGridEvent>>
| Modifier and Type | Class and Description |
|---|---|
static class |
VisorEventsCollectTask.VisorEventsCollectArgs
Argument for task returns events data.
|
taskArg| Constructor and Description |
|---|
VisorEventsCollectTask() |
| Modifier and Type | Method and Description |
|---|---|
protected org.gridgain.grid.kernal.visor.cmd.tasks.VisorEventsCollectTask.VisorEventsCollectJob |
job(VisorEventsCollectTask.VisorEventsCollectArgs arg) |
Iterable<? extends VisorGridEvent> |
reduce(List<GridComputeJobResult> results)
Reduces (or aggregates) results received so far into one compound result to be returned to
caller via
GridComputeTaskFuture.get() method. |
map, resultprotected org.gridgain.grid.kernal.visor.cmd.tasks.VisorEventsCollectTask.VisorEventsCollectJob job(VisorEventsCollectTask.VisorEventsCollectArgs arg)
job in class VisorMultiNodeTask<VisorEventsCollectTask.VisorEventsCollectArgs,Iterable<? extends VisorGridEvent>,Collection<? extends VisorGridEvent>>arg - Task arg.public Iterable<? extends VisorGridEvent> reduce(List<GridComputeJobResult> results) throws GridException
GridComputeTaskFuture.get() method.
Note, that if some jobs did not succeed and could not be failed over then the list of results passed into this method will include the failed results. Otherwise, failed results will not be in the list.
results - Received results of broadcasted remote executions. Note that if task class has
GridComputeTaskNoResultCache annotation, then this list will be empty.GridException - If reduction or results caused an error. This exception will
be thrown out of GridComputeTaskFuture.get() method.Copyright © 2014. All rights reserved.