public final class LatestServiceVersionResolver extends Object implements ServiceVersionResolver
Modifier and Type | Field and Description |
---|---|
static LatestServiceVersionResolver |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
Access.Service |
resolveV2(ServiceType type,
SortedSet<? extends Access.Service> services)
Resolves to a single identity v2 service for the given
ServiceType and set of associated services . |
Service |
resolveV3(ServiceType type,
SortedSet<? extends Service> services)
Resolves to a single identity v3 service for the given
ServiceType and set of associated services . |
public static final LatestServiceVersionResolver INSTANCE
public Service resolveV3(ServiceType type, SortedSet<? extends Service> services)
ServiceVersionResolver
ServiceType
and set of associated services
.
For example if a deployment contains Compute/Nova version 2 and 2.1 then resolve would be invoked with the
params of ServiceType.COMPUTE
and a set of 2 services (Compute 2 and Compute 2.1). The resolver is
responsible for picking the appropriate versionresolveV3
in interface ServiceVersionResolver
type
- the type of services
services
- the sorted by version set of service(s)public Access.Service resolveV2(ServiceType type, SortedSet<? extends Access.Service> services)
ServiceVersionResolver
ServiceType
and set of associated services
.
For example if a deployment contains Compute/Nova version 2 and 2.1 then resolve would be invoked with the
params of ServiceType.COMPUTE
and a set of 2 services (Compute 2 and Compute 2.1). The resolver is
responsible for picking the appropriate versionresolveV2
in interface ServiceVersionResolver
type
- type the type of services
services
- the sorted by version set of service(s)Copyright © 2017. All rights reserved.