Interface GroupInfoService
- All Known Implementing Classes:
ClientGroupManager, ClientGroupManager.GIS, GroupInfoServiceBase
public interface GroupInfoService
-
Method Summary
Modifier and TypeMethodDescriptionbooleanAdds an observer that will receive amembershipChangeinvocation whenever the cluster membership changes.getClusterInstanceInfo(String[] adapterName) This is a separate call (rather than info being passed inmembershipChange) so we can identifier the adapter.getClusterInstanceInfo(String[] adapterName, List<String> endpoints) This is a separate call (rather than info being passed inmembershipChange) so we can identifier the adapter.voidCauses themembershipChangemethod to be called on each registered observer.booleanshouldAddAddressesToNonReferenceFactory(String[] adapterName) This method only used during testing.booleanshouldAddMembershipLabel(String[] adapterName) This method only used during testing.
-
Method Details
-
addObserver
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
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
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
This method only used during testing.- Parameters:
adapterName- name to add- Returns:
- if addresses should be added
-
shouldAddMembershipLabel
This method only used during testing.- Parameters:
adapterName- name to add- Returns:
- if label should be added
-