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 -
Method Summary
Modifier and TypeMethodDescriptioncom.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> Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.common.base.Function
equals
-
Constructor Details
-
BaseEndpointResolutionStrategy
public BaseEndpointResolutionStrategy()
-
-
Method Details
-
filter
-
apply
- Specified by:
apply
in interfacecom.google.common.base.Function<Collection<ServiceEndpoint>,
com.google.common.base.Supplier<URI>> - Specified by:
apply
in interfaceFunction<Collection<ServiceEndpoint>,
com.google.common.base.Supplier<URI>>
-
withIface
protected static com.google.common.base.Predicate<ServiceEndpoint> withIface(ServiceEndpoint.Interface iface)
-