locationConfig.setMaxSize(1000000000L); locations.add(locationConfig); final StorageLocationConfig locationConfig2 = new StorageLocationConfig(); locationConfig2.setMaxSize(10000000L); locations.add(locationConfig2);
localStorageFolder.setWritable(true); locationConfig.setPath(localStorageFolder); locationConfig.setMaxSize(10L); locations.add(locationConfig); final StorageLocationConfig locationConfig2 = new StorageLocationConfig(); localStorageFolder2.setWritable(true); locationConfig2.setPath(localStorageFolder2); locationConfig2.setMaxSize(10L); locations.add(locationConfig2);
locationConfig.setMaxSize(1000000000L); locations.add(locationConfig); final StorageLocationConfig locationConfig2 = new StorageLocationConfig(); final File localStorageFolder2 = tmpFolder.newFolder("local_storage_folder2"); locationConfig2.setPath(localStorageFolder2); locationConfig2.setMaxSize(10000000L); locations.add(locationConfig2);
@Before public void setUp() throws Exception { EmittingLogger.registerEmitter(new NoopServiceEmitter()); localSegmentCacheFolder = tmpFolder.newFolder("segment_cache_folder"); final List<StorageLocationConfig> locations = new ArrayList<>(); final StorageLocationConfig locationConfig = new StorageLocationConfig(); locationConfig.setPath(localSegmentCacheFolder); locationConfig.setMaxSize(10000000000L); locations.add(locationConfig); manager = new SegmentLoaderLocalCacheManager( TestHelper.getTestIndexIO(), new SegmentLoaderConfig().withLocations(locations), jsonMapper ); }
final StorageLocationConfig locationConfig = new StorageLocationConfig(); locationConfig.setPath(localStorageFolder); locationConfig.setMaxSize(10000000000L); locations.add(locationConfig); final StorageLocationConfig locationConfig2 = new StorageLocationConfig(); final File localStorageFolder2 = tmpFolder.newFolder("local_storage_folder2"); locationConfig2.setPath(localStorageFolder2); locationConfig2.setMaxSize(1000000000L); locations.add(locationConfig2);