Class GroupInfoServiceBase

    • Constructor Detail

      • GroupInfoServiceBase

        public GroupInfoServiceBase()
    • Method Detail

      • addObserver

        public boolean addObserver​(GroupInfoServiceObserver x)
        Description copied from interface: GroupInfoService
        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.
        Specified by:
        addObserver in interface GroupInfoService
        Parameters:
        x - observer to add
        Returns:
        true if the given observer is added. False otherwise.
      • notifyObservers

        public void notifyObservers()
        Description copied from interface: GroupInfoService
        Causes the membershipChange method to be called on each registered observer.
        Specified by:
        notifyObservers in interface GroupInfoService
      • getClusterInstanceInfo

        public java.util.List<ClusterInstanceInfo> getClusterInstanceInfo​(java.lang.String[] adapterName)
        Description copied from interface: GroupInfoService
        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.
        Specified by:
        getClusterInstanceInfo in interface GroupInfoService
        Parameters:
        adapterName - name of cluster
        Returns:
        information about instances in the cluster
      • getClusterInstanceInfo

        public java.util.List<ClusterInstanceInfo> getClusterInstanceInfo​(java.lang.String[] adapterName,
                                                                          java.util.List<java.lang.String> endpoints)
        Description copied from interface: GroupInfoService
        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.
        Specified by:
        getClusterInstanceInfo in interface GroupInfoService
        Parameters:
        adapterName - adapter to use
        endpoints - endpoints of cluster
        Returns:
        info on cluster
      • shouldAddAddressesToNonReferenceFactory

        public boolean shouldAddAddressesToNonReferenceFactory​(java.lang.String[] adapterName)
        Description copied from interface: GroupInfoService
        This method only used during testing.
        Specified by:
        shouldAddAddressesToNonReferenceFactory in interface GroupInfoService
        Parameters:
        adapterName - name to add
        Returns:
        if addresses should be added
      • shouldAddMembershipLabel

        public boolean shouldAddMembershipLabel​(java.lang.String[] adapterName)
        Description copied from interface: GroupInfoService
        This method only used during testing.
        Specified by:
        shouldAddMembershipLabel in interface GroupInfoService
        Parameters:
        adapterName - name to add
        Returns:
        if label should be added
      • internalClusterInstanceInfo

        public java.util.List<ClusterInstanceInfo> internalClusterInstanceInfo()
      • internalClusterInstanceInfo

        public abstract java.util.List<ClusterInstanceInfo> internalClusterInstanceInfo​(java.util.List<java.lang.String> endpoints)