use of build.buildfarm.v1test.ContentAddressableStorageConfig in project bazel-buildfarm by bazelbuild.
the class Worker method createStorages.
private ContentAddressableStorage createStorages(InputStreamFactory remoteInputStreamFactory, ExecutorService removeDirectoryService, Executor accessRecorder, List<ContentAddressableStorageConfig> configs) throws ConfigurationException {
ImmutableList.Builder<ContentAddressableStorage> storages = ImmutableList.builder();
// must construct delegates first
ContentAddressableStorage storage = null;
ContentAddressableStorage delegate = null;
for (ContentAddressableStorageConfig config : Lists.reverse(configs)) {
storage = createStorage(remoteInputStreamFactory, removeDirectoryService, accessRecorder, config, delegate);
storages.add(storage);
delegate = storage;
}
return storage;
}
Aggregations