public class ClientGroupManager extends LocalObject implements ClientRequestInterceptor, GroupInfoService, IIOPPrimaryToContactInfo, IORToSocketInfo, ORBConfigurator, ORBInitializer
| Modifier and Type | Field and Description |
|---|---|
String |
baseMsg |
static boolean |
receivedIORUpdate |
static boolean |
sentMemberShipLabel |
| Constructor and Description |
|---|
ClientGroupManager() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addObserver(GroupInfoServiceObserver x)
Adds an observer that will receive a
membershipChange
invocation whenever the cluster membership changes. |
void |
configure(DataCollector collector,
ORB orb) |
void |
destroy() |
protected IOR |
extractIOR(byte[] data) |
List<ClusterInstanceInfo> |
getClusterInstanceInfo(String[] adapterName)
This is a separate call
(rather than info being passed in
membershipChange)
so we can identifier the adapter. |
List<ClusterInstanceInfo> |
getClusterInstanceInfo(String[] adapterName,
List<String> endpoints)
This is a separate call
(rather than info being passed in
membershipChange)
so we can identifier the adapter. |
List<ClusterInstanceInfo> |
getInitialClusterInstanceInfo(ORB orb,
List<String> endpoints) |
List |
getSocketInfo(IOR ior,
List previous)
Used to extract socket address information from an IOR.
|
boolean |
hasNext(ContactInfo primary,
ContactInfo previous,
List contactInfos) |
String |
name() |
ContactInfo |
next(ContactInfo primary,
ContactInfo previous,
List contactInfos) |
void |
notifyObservers()
Causes the
membershipChange
method to be called on each registered observer. |
void |
post_init(ORBInitInfo info) |
void |
pre_init(ORBInitInfo info) |
void |
receive_exception(ClientRequestInfo ri) |
void |
receive_other(ClientRequestInfo ri) |
void |
receive_reply(ClientRequestInfo ri) |
protected void |
reportLocatedIOR(ClientRequestInfo ri,
IOR ior) |
void |
reset(ContactInfo primary) |
void |
send_poll(ClientRequestInfo ri) |
void |
send_request(ClientRequestInfo ri) |
boolean |
shouldAddAddressesToNonReferenceFactory(String[] x)
This method only used during testing.
|
boolean |
shouldAddMembershipLabel(String[] adapterName)
This method only used during testing.
|
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_interface, _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_connectionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_overridepublic final String baseMsg
public static boolean sentMemberShipLabel
public static boolean receivedIORUpdate
public List getSocketInfo(IOR ior, List previous)
IORToSocketInfogetSocketInfo in interface IORToSocketInfoior - The ior from which the socket info is extracted.previous - The previous list, which may be reused if not null.public void reset(ContactInfo primary)
reset in interface IIOPPrimaryToContactInfoprimary - - clear any state relating to primary.public boolean hasNext(ContactInfo primary, ContactInfo previous, List contactInfos)
hasNext in interface IIOPPrimaryToContactInfoprimary - - the key.previous - - if null return true. Otherwise, find previous in
contactInfos and if another ContactInfo
follows it in the list then return true. Otherwise false.contactInfos - - the list of replicas associated with the
primary.public ContactInfo next(ContactInfo primary, ContactInfo previous, List contactInfos)
next in interface IIOPPrimaryToContactInfoprimary - - the key.previous - - if null then map primary to failover. If failover is
empty then map primary to first ContactInfo in contactInfos and mapped entry.
If failover is
non-empty then return failover. If previous is non-null that
indicates that the previous failed. Therefore, find previous in
contactInfos. Map the ContactInfo following
previous to primary and return that ContactInfo.public List<ClusterInstanceInfo> getInitialClusterInstanceInfo(ORB orb, List<String> endpoints)
public boolean addObserver(GroupInfoServiceObserver x)
GroupInfoServicemembershipChange
invocation whenever the cluster membership changes.
The
membershipChange
invocation tells the observer to call
getClusterInstanceInfo
to get info.addObserver in interface GroupInfoServicepublic void notifyObservers()
GroupInfoServicemembershipChange
method to be called on each registered observer.notifyObservers in interface GroupInfoServicepublic List<ClusterInstanceInfo> getClusterInstanceInfo(String[] adapterName)
GroupInfoServicemembershipChange)
so we can identifier the adapter.
The adapter identification is used in testing.getClusterInstanceInfo in interface GroupInfoServicepublic List<ClusterInstanceInfo> getClusterInstanceInfo(String[] adapterName, List<String> endpoints)
GroupInfoServicemembershipChange)
so we can identifier the adapter.
The adapter identification is used in testing.getClusterInstanceInfo in interface GroupInfoServicepublic boolean shouldAddAddressesToNonReferenceFactory(String[] x)
GroupInfoServiceshouldAddAddressesToNonReferenceFactory in interface GroupInfoServicepublic boolean shouldAddMembershipLabel(String[] adapterName)
GroupInfoServiceshouldAddMembershipLabel in interface GroupInfoServicepublic String name()
name in interface InterceptorOperationspublic void destroy()
destroy in interface InterceptorOperationspublic void send_request(ClientRequestInfo ri)
send_request in interface ClientRequestInterceptorOperationspublic void send_poll(ClientRequestInfo ri)
send_poll in interface ClientRequestInterceptorOperationspublic void receive_reply(ClientRequestInfo ri)
receive_reply in interface ClientRequestInterceptorOperationspublic void receive_exception(ClientRequestInfo ri)
receive_exception in interface ClientRequestInterceptorOperationspublic void receive_other(ClientRequestInfo ri)
receive_other in interface ClientRequestInterceptorOperationsprotected void reportLocatedIOR(ClientRequestInfo ri, IOR ior)
protected IOR extractIOR(byte[] data)
public void pre_init(ORBInitInfo info)
pre_init in interface ORBInitializerOperationspublic void post_init(ORBInitInfo info)
post_init in interface ORBInitializerOperationspublic void configure(DataCollector collector, ORB orb)
configure in interface ORBConfiguratorCopyright © 2017–2019 Eclipse Foundation. All rights reserved.