Package com.sun.corba.ee.spi.folb
Interface GroupInfoService
- All Known Implementing Classes:
ClientGroupManager
,ClientGroupManager.GIS
,GroupInfoServiceBase
public interface GroupInfoService
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Adds an observer that will receive amembershipChange
invocation 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.void
Causes themembershipChange
method to be called on each registered observer.boolean
shouldAddAddressesToNonReferenceFactory
(String[] adapterName) This method only used during testing.boolean
shouldAddMembershipLabel
(String[] adapterName) This method only used during testing.
-
Method Details
-
addObserver
Adds an observer that will receive amembershipChange
invocation whenever the cluster membership changes. ThemembershipChange
invocation tells the observer to callgetClusterInstanceInfo
to get info.- Parameters:
x
- observer to add- Returns:
- true if the given observer is added. False otherwise.
-
notifyObservers
void notifyObservers()Causes themembershipChange
method 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
-