Package com.sun.corba.ee.impl.folb
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 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.abstract List
<ClusterInstanceInfo> internalClusterInstanceInfo
(List<String> endpoints) void
Causes themembershipChange
method to be called on each registered observer.private void
boolean
shouldAddAddressesToNonReferenceFactory
(String[] adapterName) This method only used during testing.boolean
shouldAddMembershipLabel
(String[] adapterName) This method only used during testing.Methods inherited from class org.omg.CORBA.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:GroupInfoService
Adds an observer that will receive amembershipChange
invocation whenever the cluster membership changes. ThemembershipChange
invocation tells the observer to callgetClusterInstanceInfo
to get info.- Specified by:
addObserver
in 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:GroupInfoService
Causes themembershipChange
method to be called on each registered observer.- Specified by:
notifyObservers
in interfaceGroupInfoService
-
getClusterInstanceInfo
Description copied from interface:GroupInfoService
This 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:
getClusterInstanceInfo
in 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:GroupInfoService
This 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:
getClusterInstanceInfo
in interfaceGroupInfoService
- Parameters:
adapterName
- adapter to useendpoints
- endpoints of cluster- Returns:
- info on cluster
-
shouldAddAddressesToNonReferenceFactory
Description copied from interface:GroupInfoService
This method only used during testing.- Specified by:
shouldAddAddressesToNonReferenceFactory
in interfaceGroupInfoService
- Parameters:
adapterName
- name to add- Returns:
- if addresses should be added
-
shouldAddMembershipLabel
Description copied from interface:GroupInfoService
This method only used during testing.- Specified by:
shouldAddMembershipLabel
in interfaceGroupInfoService
- Parameters:
adapterName
- name to add- Returns:
- if label should be added
-
internalClusterInstanceInfo
-
internalClusterInstanceInfo
-