Interface ArchiveService
- All Known Implementing Classes:
MockArchiveService
public interface ArchiveService
Service that manages archive storage URIs for tenant nodes.
- Author:
- freva, andreer
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanAddTenantToBucket(com.yahoo.config.provision.zone.ZoneId zoneId, VespaManagedArchiveBucket bucket) createArchiveBucketFor(com.yahoo.config.provision.zone.ZoneId zoneId) findEnclaveArchiveBucket(com.yahoo.config.provision.zone.ZoneId zoneId, com.yahoo.config.provision.CloudAccount cloudAccount) Optional<com.yahoo.component.Version>getEnclaveTemplateVersion(com.yahoo.config.provision.CloudAccount cloudAccount) static Stream<com.yahoo.component.Version>parseVersion(String versionString) voidupdatePolicies(com.yahoo.config.provision.zone.ZoneId zoneId, Set<VespaManagedArchiveBucket> buckets, Map<com.yahoo.config.provision.TenantName, ArchiveAccess> authorizeAccessByTenantName)
-
Method Details
-
createArchiveBucketFor
-
updatePolicies
void updatePolicies(com.yahoo.config.provision.zone.ZoneId zoneId, Set<VespaManagedArchiveBucket> buckets, Map<com.yahoo.config.provision.TenantName, ArchiveAccess> authorizeAccessByTenantName) -
canAddTenantToBucket
boolean canAddTenantToBucket(com.yahoo.config.provision.zone.ZoneId zoneId, VespaManagedArchiveBucket bucket) -
findEnclaveArchiveBucket
-
bucketURI
-
getEnclaveTemplateVersion
Optional<com.yahoo.component.Version> getEnclaveTemplateVersion(com.yahoo.config.provision.CloudAccount cloudAccount) - Returns:
- the version of the template that was used during the last apply for the given cloud account,
or
Version.emptyVersionif the version tag was not present or invalid, orOptional.empty()if the we have no access to the cloud account (template probably not applied yet)
-
parseVersion
-