Package com.sun.corba.ee.spi.folb
Interface GroupInfoService
-
- All Known Implementing Classes:
ClientGroupManager,ClientGroupManager.GIS,GroupInfoServiceBase
public interface GroupInfoService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanaddObserver(GroupInfoServiceObserver x)Adds an observer that will receive amembershipChangeinvocation whenever the cluster membership changes.java.util.List<ClusterInstanceInfo>getClusterInstanceInfo(java.lang.String[] adapterName)This is a separate call (rather than info being passed inmembershipChange) so we can identifier the adapter.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 inmembershipChange) so we can identifier the adapter.voidnotifyObservers()Causes themembershipChangemethod to be called on each registered observer.booleanshouldAddAddressesToNonReferenceFactory(java.lang.String[] adapterName)This method only used during testing.booleanshouldAddMembershipLabel(java.lang.String[] adapterName)This method only used during testing.
-
-
-
Method Detail
-
addObserver
boolean addObserver(GroupInfoServiceObserver x)
Adds an observer that will receive amembershipChangeinvocation whenever the cluster membership changes. ThemembershipChangeinvocation tells the observer to callgetClusterInstanceInfoto get info.- Parameters:
x- observer to add- Returns:
- true if the given observer is added. False otherwise.
-
notifyObservers
void notifyObservers()
Causes themembershipChangemethod 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 inmembershipChange) 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 inmembershipChange) so we can identifier the adapter. The adapter identification is used in testing.- Parameters:
adapterName- adapter to useendpoints- 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
-
-