Package org.idempiere.distributed
Interface IClusterService
public interface IClusterService
Interface for cluster service
- Author:
- hengsin
-
Method Summary
Modifier and TypeMethodDescription<V> Map<IClusterMember,
Future<V>> execute
(Callable<V> task, Collection<IClusterMember> members) Execute task on the list of members<V> Future<V>
execute
(Callable<V> task, IClusterMember member) Execute task on specific memberGet local nodeGet member nodesdefault boolean
Is instance stand alone
-
Method Details
-
getMembers
Collection<IClusterMember> getMembers()Get member nodes- Returns:
- Collection of cluster member
-
getLocalMember
IClusterMember getLocalMember()Get local node- Returns:
- Local node
-
execute
Execute task on specific member- Parameters:
task
-member
-- Returns:
- Future
-
execute
Execute task on the list of members- Parameters:
task
-members
-- Returns:
- Map of IClusterMember and Future
-
isStandAlone
default boolean isStandAlone()Is instance stand alone- Returns:
- true if instance is stand alone
-