Interface GroupInfoService

All Known Implementing Classes:
ClientGroupManager, ClientGroupManager.GIS, GroupInfoServiceBase

public interface GroupInfoService
  • Method Details

    • addObserver

      boolean addObserver(GroupInfoServiceObserver x)
      Adds an observer that will receive a membershipChange invocation whenever the cluster membership changes. The membershipChange invocation tells the observer to call getClusterInstanceInfo to get info.
      Parameters:
      x - observer to add
      Returns:
      true if the given observer is added. False otherwise.
    • notifyObservers

      void notifyObservers()
      Causes the membershipChange method to be called on each registered observer.
    • getClusterInstanceInfo

      List<ClusterInstanceInfo> getClusterInstanceInfo(String[] adapterName)
      This is a separate call (rather than info being passed in membershipChange) so we can identifier the adapter. The adapter identification is used in testing.
      Parameters:
      adapterName - name of cluster
      Returns:
      information about instances in the cluster
    • getClusterInstanceInfo

      List<ClusterInstanceInfo> getClusterInstanceInfo(String[] adapterName, List<String> endpoints)
      This is a separate call (rather than info being passed in membershipChange) so we can identifier the adapter. The adapter identification is used in testing.
      Parameters:
      adapterName - adapter to use
      endpoints - endpoints of cluster
      Returns:
      info on cluster
    • shouldAddAddressesToNonReferenceFactory

      boolean shouldAddAddressesToNonReferenceFactory(String[] adapterName)
      This method only used during testing.
      Parameters:
      adapterName - name to add
      Returns:
      if addresses should be added
    • shouldAddMembershipLabel

      boolean shouldAddMembershipLabel(String[] adapterName)
      This method only used during testing.
      Parameters:
      adapterName - name to add
      Returns:
      if label should be added