IgniteJdbcDriver for details.@Deprecated public class JdbcConnectionValidationTask extends ComputeTaskSplitAdapter<Object,Boolean>
JdbcConnection validation.| Constructor and Description |
|---|
JdbcConnectionValidationTask()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
@Nullable Boolean |
reduce(List<ComputeJobResult> results)
Deprecated.
Reduces (or aggregates) results received so far into one compound result to be returned to
caller via
ComputeTaskFuture.get() method. |
protected Collection<? extends ComputeJob> |
split(int gridSize,
Object arg)
Deprecated.
This is a simplified version of
ComputeTask.map(List, Object) method. |
mapresultprotected Collection<? extends ComputeJob> split(int gridSize, Object arg) throws IgniteException
ComputeTask.map(List, Object) method.
This method basically takes given argument and splits it into a collection
of ComputeJob using provided grid size as indication of how many node are
available. These jobs will be randomly mapped to available grid nodes. Note that
if number of jobs is greater than number of grid nodes (i.e, grid size), the grid
nodes will be reused and some jobs will end up on the same grid nodes.
split in class ComputeTaskSplitAdapter<Object,Boolean>gridSize - Number of available grid nodes. Note that returned number of
jobs can be less, equal or greater than this grid size.arg - Task execution argument. Can be null.IgniteException - Thrown in case of any errors.ComputeTask.map(List, Object)@Nullable public @Nullable Boolean reduce(List<ComputeJobResult> results) throws IgniteException
ComputeTaskFuture.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
ComputeTaskNoResultCache annotation, then this list will be empty.IgniteException - If reduction or results caused an error. This exception will
be thrown out of ComputeTaskFuture.get() method.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.11.0 Release Date : September 11 2021