I - Request type.R - Result type.public class DistributedProcess<I extends Serializable,R extends Serializable> extends Object
The process consists of the following phases:
InitMessage sent via discovery.SingleNodeMessage sent via communication.FullMessage sent via
discovery.Several processes of one type can be started at the same time.
InitMessage,
FullMessage| Modifier and Type | Class and Description |
|---|---|
static class |
DistributedProcess.DistributedProcessType
Defines distributed processes.
|
| Constructor and Description |
|---|
DistributedProcess(GridKernalContext ctx,
DistributedProcess.DistributedProcessType type,
Function<I,IgniteInternalFuture<R>> exec,
CI3<UUID,Map<UUID,R>,Map<UUID,Exception>> finish) |
DistributedProcess(GridKernalContext ctx,
DistributedProcess.DistributedProcessType type,
Function<I,IgniteInternalFuture<R>> exec,
CI3<UUID,Map<UUID,R>,Map<UUID,Exception>> finish,
BiFunction<UUID,I,? extends InitMessage<I>> initMsgFactory) |
public DistributedProcess(GridKernalContext ctx, DistributedProcess.DistributedProcessType type, Function<I,IgniteInternalFuture<R>> exec, CI3<UUID,Map<UUID,R>,Map<UUID,Exception>> finish)
ctx - Kernal context.type - Process type.exec - Execute action and returns future with the single node result to send to the coordinator.finish - Finish process closure. Called on each node when all single nodes results received.public DistributedProcess(GridKernalContext ctx, DistributedProcess.DistributedProcessType type, Function<I,IgniteInternalFuture<R>> exec, CI3<UUID,Map<UUID,R>,Map<UUID,Exception>> finish, BiFunction<UUID,I,? extends InitMessage<I>> initMsgFactory)
ctx - Kernal context.type - Process type.exec - Execute action and returns future with the single node result to send to the coordinator.finish - Finish process closure. Called on each node when all single nodes results received.initMsgFactory - Factory which creates custom InitMessage for distributed process initialization.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.11.1 Release Date : December 20 2021