Interface GroupInfoService

    • Method Detail

      • 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

        java.util.List<ClusterInstanceInfo> getClusterInstanceInfo​(java.lang.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

        java.util.List<ClusterInstanceInfo> getClusterInstanceInfo​(java.lang.String[] adapterName,
                                                                   java.util.List<java.lang.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​(java.lang.String[] adapterName)
        This method only used during testing.
        Parameters:
        adapterName - name to add
        Returns:
        if addresses should be added
      • shouldAddMembershipLabel

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