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 boolean
addObserver(GroupInfoServiceObserver x)
Adds an observer that will receive amembershipChange
invocation 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)
void
notifyObservers()
Causes themembershipChange
method to be called on each registered observer.private void
observerInfo(GroupInfoServiceObserver obs)
boolean
shouldAddAddressesToNonReferenceFactory(java.lang.String[] adapterName)
This method only used during testing.boolean
shouldAddMembershipLabel(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: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
@InfoMethod private void observerInfo(GroupInfoServiceObserver obs)
-
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
public java.util.List<ClusterInstanceInfo> getClusterInstanceInfo(java.lang.String[] adapterName)
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 java.util.List<ClusterInstanceInfo> getClusterInstanceInfo(java.lang.String[] adapterName, java.util.List<java.lang.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
public boolean shouldAddAddressesToNonReferenceFactory(java.lang.String[] adapterName)
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
public boolean shouldAddMembershipLabel(java.lang.String[] adapterName)
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
public java.util.List<ClusterInstanceInfo> internalClusterInstanceInfo()
-
internalClusterInstanceInfo
public abstract java.util.List<ClusterInstanceInfo> internalClusterInstanceInfo(java.util.List<java.lang.String> endpoints)
-
-