|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.softamis.cluster4spring.support.provider.BaseEndpointProvider<E,SI>
org.softamis.cluster4spring.support.provider.MultiURLEndpointProvider<E,SI>
org.softamis.cluster4spring.support.provider.AbstractUrlListEndpointProvider<E,SI>
org.softamis.cluster4spring.support.provider.UrlListEndpointProvider<E,SI>
SI - type of data used to invoke remote service (such as remote service URL)E - type of endpoints that could be created by this factorypublic class UrlListEndpointProvider<E extends Endpoint<SI>,SI extends ServiceMoniker>
Implementation of EndpointProvider which uses the list of
explicitely specified "url" of the service to create service endpoint. Basically,
any object may represent service "url" - it is responsibility of concrete implementation
of EndpointFactory to interpret given object and create appropriate
endpoint for remote service that could be located based on given "url".
| Field Summary | |
|---|---|
protected static org.apache.commons.logging.Log |
fLog
|
protected java.util.List<SI> |
fServiceMonikers
List of urls used to discover remote service and create service endpoints |
| Fields inherited from class org.softamis.cluster4spring.support.provider.AbstractUrlListEndpointProvider |
|---|
fCacheLock, fEndpointsCache |
| Fields inherited from class org.softamis.cluster4spring.support.provider.MultiURLEndpointProvider |
|---|
fEndpointSelectionPolicy |
| Fields inherited from class org.softamis.cluster4spring.support.provider.BaseEndpointProvider |
|---|
fCacheEndpoints |
| Constructor Summary | |
|---|---|
UrlListEndpointProvider()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
Invoked by Spring as part of bean' lifecycle. |
protected java.util.List<E> |
doRefreshServiceEndpointsList(org.springframework.remoting.support.RemoteInvocationFactory aRemoteInvocationFactory,
EndpointFactory<E,SI> aEndpointFactory,
java.lang.String aBeanName)
Creates list of endpoints available for service. |
java.util.List<SI> |
getServiceMonikers()
Returns list of ServiceMonikers used to discover remote service and create service endpoints |
void |
markInvalid(java.lang.String aBeanName,
E aEndpoint)
Marks given endpoint invalid. |
void |
setServiceMonikers(java.util.List<SI> aServiceMonikers)
Sets list of urls (in form of ServiceMoniker) used to discover remote service and create service endpoints |
void |
setServiceURLs(java.util.List<java.lang.String> aServiceURL)
Utility method which allows to specify list of URL when URL of service locations is specified in simple string form. |
| Methods inherited from class org.softamis.cluster4spring.support.provider.AbstractUrlListEndpointProvider |
|---|
doGetCachedEndpoints, getCachedEndpoints, getServiceEndpointsList, refresh, saveFreshEndpointsToCache |
| Methods inherited from class org.softamis.cluster4spring.support.provider.MultiURLEndpointProvider |
|---|
createDefaultEndpointSelectionPolicy, getEndpoint, setEndpointSelectionPolicy |
| Methods inherited from class org.softamis.cluster4spring.support.provider.BaseEndpointProvider |
|---|
doCreateServiceEndpoint, isCacheEndpoints, setCacheEndpoints |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.apache.commons.logging.Log fLog
protected java.util.List<SI extends ServiceMoniker> fServiceMonikers
| Constructor Detail |
|---|
public UrlListEndpointProvider()
| Method Detail |
|---|
public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanafterPropertiesSet in class AbstractUrlListEndpointProvider<E extends Endpoint<SI>,SI extends ServiceMoniker>java.lang.ExceptionMultiURLEndpointProvider.createDefaultEndpointSelectionPolicy()
protected java.util.List<E> doRefreshServiceEndpointsList(org.springframework.remoting.support.RemoteInvocationFactory aRemoteInvocationFactory,
EndpointFactory<E,SI> aEndpointFactory,
java.lang.String aBeanName)
throws org.springframework.remoting.RemoteAccessException
doRefreshServiceEndpointsList in class AbstractUrlListEndpointProvider<E extends Endpoint<SI>,SI extends ServiceMoniker>aRemoteInvocationFactory - factory used to create remote invocationaEndpointFactory - factory used to create endpointsaBeanName -
org.springframework.remoting.RemoteAccessException - thrown if after processing of all urls the resulting list of endpoints is empty
public void markInvalid(java.lang.String aBeanName,
E aEndpoint)
aBeanName - name of bean that is used as proxy for remote serviceaEndpoint - endpoint to be marked invalidBaseEndpointProvider.setCacheEndpoints(boolean)public void setServiceMonikers(java.util.List<SI> aServiceMonikers)
ServiceMoniker) used to discover remote service and create service endpoints
aServiceMonikers - list of urlsServiceMonikerpublic java.util.List<SI> getServiceMonikers()
ServiceMonikers used to discover remote service and create service endpoints
ServiceMonikerpublic void setServiceURLs(java.util.List<java.lang.String> aServiceURL)
aServiceURL -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||