Interface IClusterService


public interface IClusterService
Interface for cluster service
Author:
hengsin
  • Method Details

    • getMembers

      Collection<IClusterMember> getMembers()
      Get member nodes
      Returns:
      Collection of cluster member
    • getLocalMember

      IClusterMember getLocalMember()
      Get local node
      Returns:
      Local node
    • execute

      <V> Future<V> execute(Callable<V> task, IClusterMember member)
      Execute task on specific member
      Parameters:
      task -
      member -
      Returns:
      Future
    • execute

      <V> Map<IClusterMember,Future<V>> execute(Callable<V> task, Collection<IClusterMember> members)
      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