Class GroupInfoServiceBase

java.lang.Object
org.omg.CORBA.LocalObject
com.sun.corba.ee.impl.folb.GroupInfoServiceBase
All Implemented Interfaces:
GroupInfoService, Object
Direct Known Subclasses:
ClientGroupManager.GIS

public abstract class GroupInfoServiceBase extends LocalObject implements GroupInfoService
  • Field Details

  • Constructor Details

    • GroupInfoServiceBase

      public GroupInfoServiceBase()
  • Method Details

    • 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.
    • observerInfo

      @InfoMethod private void observerInfo(GroupInfoServiceObserver obs)
    • 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 List<ClusterInstanceInfo> getClusterInstanceInfo(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 List<ClusterInstanceInfo> getClusterInstanceInfo(String[] adapterName, List<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(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(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 List<ClusterInstanceInfo> internalClusterInstanceInfo()
    • internalClusterInstanceInfo

      public abstract List<ClusterInstanceInfo> internalClusterInstanceInfo(List<String> endpoints)