Search in sources :

Example 1 with ObjectKeyLoader

use of com.netflix.spinnaker.front50.model.ObjectKeyLoader in project front50 by spinnaker.

the class GcsConfig method applicationPermissionDAO.

@Bean
public ApplicationPermissionDAO applicationPermissionDAO(Storage storage, StorageServiceConfigurationProperties storageServiceConfigurationProperties, Registry registry, CircuitBreakerRegistry circuitBreakerRegistry, GcsProperties gcsProperties) {
    GcsStorageService service = googleCloudStorageService(storage, APPLICATION_PERMISSION_DATA_FILENAME, gcsProperties);
    ObjectKeyLoader keyLoader = new DefaultObjectKeyLoader(service);
    return new DefaultApplicationPermissionDAO(service, Schedulers.from(Executors.newFixedThreadPool(storageServiceConfigurationProperties.getApplicationPermission().getThreadPool())), keyLoader, storageServiceConfigurationProperties.getApplicationPermission().getRefreshMs(), storageServiceConfigurationProperties.getApplicationPermission().getShouldWarmCache(), registry, circuitBreakerRegistry);
}
Also used : DefaultObjectKeyLoader(com.netflix.spinnaker.front50.model.DefaultObjectKeyLoader) DefaultObjectKeyLoader(com.netflix.spinnaker.front50.model.DefaultObjectKeyLoader) ObjectKeyLoader(com.netflix.spinnaker.front50.model.ObjectKeyLoader) DefaultApplicationPermissionDAO(com.netflix.spinnaker.front50.model.application.DefaultApplicationPermissionDAO) GcsStorageService(com.netflix.spinnaker.front50.model.GcsStorageService) ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean) Bean(org.springframework.context.annotation.Bean)

Aggregations

DefaultObjectKeyLoader (com.netflix.spinnaker.front50.model.DefaultObjectKeyLoader)1 GcsStorageService (com.netflix.spinnaker.front50.model.GcsStorageService)1 ObjectKeyLoader (com.netflix.spinnaker.front50.model.ObjectKeyLoader)1 DefaultApplicationPermissionDAO (com.netflix.spinnaker.front50.model.application.DefaultApplicationPermissionDAO)1 ConditionalOnMissingBean (org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean)1 Bean (org.springframework.context.annotation.Bean)1