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
public abstract class GroupInfoServiceBase extends LocalObject implements GroupInfoService
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<GroupInfoServiceObserver>observers
-
Constructor Summary
Constructors Constructor Description GroupInfoServiceBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete 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.java.util.List<ClusterInstanceInfo>internalClusterInstanceInfo()abstract java.util.List<ClusterInstanceInfo>internalClusterInstanceInfo(java.util.List<java.lang.String> endpoints)voidnotifyObservers()Causes themembershipChangemethod to be called on each registered observer.private voidobserverInfo(GroupInfoServiceObserver obs)booleanshouldAddAddressesToNonReferenceFactory(java.lang.String[] adapterName)This method only used during testing.booleanshouldAddMembershipLabel(java.lang.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 Detail
-
observers
private java.util.List<GroupInfoServiceObserver> observers
-
-
Method Detail
-
addObserver
public boolean addObserver(GroupInfoServiceObserver x)
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
@InfoMethod private void observerInfo(GroupInfoServiceObserver obs)
-
notifyObservers
public void notifyObservers()
Description copied from interface:GroupInfoServiceCauses themembershipChangemethod to be called on each registered observer.- Specified by:
notifyObserversin interfaceGroupInfoService
-
getClusterInstanceInfo
public java.util.List<ClusterInstanceInfo> getClusterInstanceInfo(java.lang.String[] adapterName)
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 java.util.List<ClusterInstanceInfo> getClusterInstanceInfo(java.lang.String[] adapterName, java.util.List<java.lang.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
public boolean shouldAddAddressesToNonReferenceFactory(java.lang.String[] adapterName)
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
public boolean shouldAddMembershipLabel(java.lang.String[] adapterName)
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
public java.util.List<ClusterInstanceInfo> internalClusterInstanceInfo()
-
internalClusterInstanceInfo
public abstract java.util.List<ClusterInstanceInfo> internalClusterInstanceInfo(java.util.List<java.lang.String> endpoints)
-
-