|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.soton.itinnovation.grid.client.helpers.RegistrySearchPathBuilder
public class RegistrySearchPathBuilder
Helper class to build registry search paths.
A DefaultInvocationEngine has a search path of registries to search when making an
invocation.
Because of the recursive nature of registry searches, some care is needed
when the search path includes remote registries. In particular, the search
path used when accessing a registry must not include the registry itself.
This class creates the remote registry proxies with suitable search paths.
| Constructor Summary | |
|---|---|
RegistrySearchPathBuilder(Map<Class,Class<? extends ProxyHelpers>> helperRegistry,
WSDLCache wsdlCache)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addAllKnownRegistriesToSelectedRegistries(DefaultInvocationEngine engine)
|
void |
addRemoteRegistryToSelectedRegistries(DefaultInvocationEngine engine,
org.apache.axis.message.addressing.EndpointReferenceType epr)
Create a registry proxy from an EPR and add it to the search path. |
List<SimpleRegistry> |
buildSearchPath(DefaultInvocationEngine engine,
List<SimpleRegistry> localRegistries,
List<org.apache.axis.message.addressing.EndpointReferenceType> remoteRegistries)
Add local and remote registries to an engine's search path. |
void |
prettyPrint(DefaultInvocationEngine engine)
Print the data structure of a DefaultInvocationEngine and its selectedRegistries list. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RegistrySearchPathBuilder(Map<Class,Class<? extends ProxyHelpers>> helperRegistry,
WSDLCache wsdlCache)
helperRegistry - used in #addRemoteRegistry to construct the HelperProxyFactorywsdlCache - used to construct the HelperProxyFactory| Method Detail |
|---|
public List<SimpleRegistry> buildSearchPath(DefaultInvocationEngine engine,
List<SimpleRegistry> localRegistries,
List<org.apache.axis.message.addressing.EndpointReferenceType> remoteRegistries)
localRegistries - list of registry objects to addremoteRegistries - list of registry objects to add
The localRegistries are appended to the search path first, then the remote registries
(using addRemoteRegistryToSelectedRegistries(uk.ac.soton.itinnovation.grid.client.engine.impl.DefaultInvocationEngine, org.apache.axis.message.addressing.EndpointReferenceType) for each one.
public void addRemoteRegistryToSelectedRegistries(DefaultInvocationEngine engine,
org.apache.axis.message.addressing.EndpointReferenceType epr)
public void addAllKnownRegistriesToSelectedRegistries(DefaultInvocationEngine engine)
throws RemoteException
RemoteExceptionpublic void prettyPrint(DefaultInvocationEngine engine)
engine - The DefaultInvocationEngine to print
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||