Package org.bonitasoft.engine.platform
Class BroadcastServiceLocal
java.lang.Object
org.bonitasoft.engine.platform.BroadcastServiceLocal
- All Implemented Interfaces:
BroadcastService
@Component
@ConditionalOnSingleCandidate(BroadcastService.class)
public class BroadcastServiceLocal
extends Object
implements BroadcastService
This implementation does nothing, to be used in a single node environment.
When cluster feature is enabled, an other implementation of the BroadcastService dispatch calls to other nodes.
- Author:
- Baptiste Mesta
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> Future<Map<String,TaskResult<T>>> executeOnOthers(Callable<T> callable) Broadcast the execution of a callable on other nodes and returns immediately a future holding the execution result on each node (once available).<T> Map<String,TaskResult<T>> executeOnOthersAndWait(Callable<T> callable)
-
Constructor Details
-
BroadcastServiceLocal
public BroadcastServiceLocal()
-
-
Method Details
-
executeOnOthers
Description copied from interface:BroadcastServiceBroadcast the execution of a callable on other nodes and returns immediately a future holding the execution result on each node (once available).
The callable will be executed using a platform level session on other nodes.- Specified by:
executeOnOthersin interfaceBroadcastService- Type Parameters:
T- type of the returned value- Parameters:
callable- callable that will be executed on all nodes except the current one- Returns:
- a future of a map containing the name of the node and the result of the callable
-
executeOnOthersAndWait
- Specified by:
executeOnOthersAndWaitin interfaceBroadcastService
-