Interface ServiceVersionResolver
-
- All Known Implementing Classes:
LatestServiceVersionResolver,StableServiceVersionResolver
public interface ServiceVersionResolverResponsible for resolving a Service to a specific version.- Author:
- Jeremy Unruh
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Access.ServiceresolveV2(ServiceType type, SortedSet<? extends Access.Service> services)Resolves to a single identity v2 service for the givenServiceTypeand set of associatedservices.ServiceresolveV3(ServiceType type, SortedSet<? extends Service> services)Resolves to a single identity v3 service for the givenServiceTypeand set of associatedservices.
-
-
-
Method Detail
-
resolveV3
Service resolveV3(ServiceType type, SortedSet<? extends Service> services)
Resolves to a single identity v3 service for the givenServiceTypeand set of associatedservices.For example if a deployment contains Compute/Nova version 2 and 2.1 then resolve would be invoked with the params of
ServiceType.COMPUTEand a set of 2 services (Compute 2 and Compute 2.1). The resolver is responsible for picking the appropriate version- Parameters:
type- the type ofservicesservices- the sorted by version set of service(s)- Returns:
- a single service
-
resolveV2
Access.Service resolveV2(ServiceType type, SortedSet<? extends Access.Service> services)
Resolves to a single identity v2 service for the givenServiceTypeand set of associatedservices.For example if a deployment contains Compute/Nova version 2 and 2.1 then resolve would be invoked with the params of
ServiceType.COMPUTEand a set of 2 services (Compute 2 and Compute 2.1). The resolver is responsible for picking the appropriate version- Parameters:
type- type the type ofservicesservices- the sorted by version set of service(s)- Returns:
- a single service
-
-