Class BaseEndpointResolutionStrategy
- java.lang.Object
-
- org.jclouds.openstack.keystone.catalog.functions.BaseEndpointResolutionStrategy
-
- All Implemented Interfaces:
com.google.common.base.Function<Collection<ServiceEndpoint>,com.google.common.base.Supplier<URI>>,Function<Collection<ServiceEndpoint>,com.google.common.base.Supplier<URI>>,ServiceEndpointResolutionStrategy
- Direct Known Subclasses:
AdminURL,InternalURL,PublicURLOrInternal
public abstract class BaseEndpointResolutionStrategy extends Object implements ServiceEndpointResolutionStrategy
Resolves the endpoint to be used to connect to a service based on a given predicate.
-
-
Constructor Summary
Constructors Constructor Description BaseEndpointResolutionStrategy()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description com.google.common.base.Supplier<URI>apply(Collection<ServiceEndpoint> input)protected abstract com.google.common.base.Predicate<ServiceEndpoint>filter()protected static com.google.common.base.Predicate<ServiceEndpoint>withIface(ServiceEndpoint.Interface iface)
-
-
-
Method Detail
-
filter
protected abstract com.google.common.base.Predicate<ServiceEndpoint> filter()
-
apply
@Nullable public com.google.common.base.Supplier<URI> apply(Collection<ServiceEndpoint> input)
- Specified by:
applyin interfacecom.google.common.base.Function<Collection<ServiceEndpoint>,com.google.common.base.Supplier<URI>>- Specified by:
applyin interfaceFunction<Collection<ServiceEndpoint>,com.google.common.base.Supplier<URI>>
-
withIface
protected static com.google.common.base.Predicate<ServiceEndpoint> withIface(ServiceEndpoint.Interface iface)
-
-