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
-
Field Summary
Fields -
Constructor Summary
Constructors -
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.abstract List<ClusterInstanceInfo> internalClusterInstanceInfo(List<String> endpoints) voidCauses themembershipChangemethod to be called on each registered observer.private voidbooleanshouldAddAddressesToNonReferenceFactory(String[] adapterName) This method only used during testing.booleanshouldAddMembershipLabel(String[] adapterName) This method only used during testing.Methods inherited from class LocalObject
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface, _get_interface_def, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_policy_override, validate_connection
-
Field Details
-
observers
-
-
Constructor Details
-
GroupInfoServiceBase
public GroupInfoServiceBase()
-
-
Method Details
-
addObserver
Description copied from interface:GroupInfoServiceAdds an observer that will receive amembershipChangeinvocation whenever the cluster membership changes. ThemembershipChangeinvocation tells the observer to callgetClusterInstanceInfoto get info.- Specified by:
addObserverin interfaceGroupInfoService- Parameters:
x- observer to add- Returns:
- true if the given observer is added. False otherwise.
-
observerInfo
-
notifyObservers
public void notifyObservers()Description copied from interface:GroupInfoServiceCauses themembershipChangemethod to be called on each registered observer.- Specified by:
notifyObserversin interfaceGroupInfoService
-
getClusterInstanceInfo
Description copied from interface:GroupInfoServiceThis is a separate call (rather than info being passed inmembershipChange) so we can identifier the adapter. The adapter identification is used in testing.- Specified by:
getClusterInstanceInfoin interfaceGroupInfoService- 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:GroupInfoServiceThis is a separate call (rather than info being passed inmembershipChange) so we can identifier the adapter. The adapter identification is used in testing.- Specified by:
getClusterInstanceInfoin interfaceGroupInfoService- Parameters:
adapterName- adapter to useendpoints- endpoints of cluster- Returns:
- info on cluster
-
shouldAddAddressesToNonReferenceFactory
Description copied from interface:GroupInfoServiceThis method only used during testing.- Specified by:
shouldAddAddressesToNonReferenceFactoryin interfaceGroupInfoService- Parameters:
adapterName- name to add- Returns:
- if addresses should be added
-
shouldAddMembershipLabel
Description copied from interface:GroupInfoServiceThis method only used during testing.- Specified by:
shouldAddMembershipLabelin interfaceGroupInfoService- Parameters:
adapterName- name to add- Returns:
- if label should be added
-
internalClusterInstanceInfo
-
internalClusterInstanceInfo
-