public class ServiceLocator extends Object
UDDIClerk.getEndpoints
SubscriptionCallbackListener
Constructor and Description |
---|
ServiceLocator(UDDIClerk clerk)
Requirement in the config is a clerk with access credentials to the UDDI server
you want the locator to do lookups to.
|
ServiceLocator(UDDIClerk clerk,
URLLocalizer urlLocalizer,
Properties properties) |
Modifier and Type | Method and Description |
---|---|
void |
clearCaches() |
SelectionPolicy |
getPolicy()
Returns the selection policy in use by this instance of the ServiceLocator.
|
UDDIServiceCache |
getUDDIServiceCache() |
String |
lookupEndpoint(QName serviceQName,
String portName)
Looks up the Endpoints for a Service.
|
String |
lookupEndpoint(String serviceKey)
Looks up the Endpoints for a Service.
|
ServiceLocator |
setPolicy(String policy)
The policy selection can be set as property "juddi.client.selection.policy"
or it can be set programmatically using this method.
|
void |
shutdown() |
ServiceLocator |
withCache(URL baseCallbackURL)
Creates a new UDDIServiceCache, which brings up a new WebService Endpoint.
|
ServiceLocator |
withLiveCache(URL baseCallbackURL)
A live cache will receive callbacks from the UDDI server in case there is an update to
a service's bindings.
|
ServiceLocator |
withSimpleCache() |
public ServiceLocator(UDDIClerk clerk)
clerk
- a UDDI Clerk with publish access to the UDDI Server.org.apache.commons.configuration.ConfigurationException
public ServiceLocator(UDDIClerk clerk, URLLocalizer urlLocalizer, Properties properties) throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public ServiceLocator withCache(URL baseCallbackURL) throws org.apache.commons.configuration.ConfigurationException
baseCallbackURL
- org.apache.commons.configuration.ConfigurationException
public ServiceLocator withLiveCache(URL baseCallbackURL) throws org.apache.commons.configuration.ConfigurationException, BindException
baseCallbackURL
- org.apache.commons.configuration.ConfigurationException
BindException
public ServiceLocator withSimpleCache()
public UDDIServiceCache getUDDIServiceCache()
public ServiceLocator setPolicy(String policy)
policy
- - the desired policy.PolicyLocalFirst
,
PolicyRoundRobin
public SelectionPolicy getPolicy() throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public void clearCaches()
public void shutdown() throws RemoteException, org.apache.commons.configuration.ConfigurationException, TransportException
RemoteException
org.apache.commons.configuration.ConfigurationException
TransportException
public String lookupEndpoint(String serviceKey) throws RemoteException, org.apache.commons.configuration.ConfigurationException, TransportException
serviceKey
- RemoteException
org.apache.commons.configuration.ConfigurationException
TransportException
public String lookupEndpoint(QName serviceQName, String portName) throws RemoteException, org.apache.commons.configuration.ConfigurationException, TransportException
serviceQName
- portName
- TransportException
org.apache.commons.configuration.ConfigurationException
RemoteException
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.