public SegmentLoaderConfig withLocations(List<StorageLocationConfig> locations) { SegmentLoaderConfig retVal = new SegmentLoaderConfig(); retVal.locations = Lists.newArrayList(locations); retVal.deleteOnRemove = this.deleteOnRemove; retVal.infoDir = this.infoDir; return retVal; }
public SegmentLoader manufacturate(File storageDir) { return loader.withConfig( new SegmentLoaderConfig().withLocations(Collections.singletonList(new StorageLocationConfig().setPath(storageDir))) ); } }
.toInstance(new SegmentLoaderConfig().withLocations(Collections.emptyList())); binder.bind(CoordinatorClient.class).in(LazySingleton.class);
@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 ); }
new SegmentLoaderConfig(), EasyMock.createNiceMock(DataSegmentAnnouncer.class), EasyMock.createNiceMock(DataSegmentServerAnnouncer.class),
new SegmentLoaderConfig().withLocations(locations), jsonMapper );
new SegmentLoaderConfig().withLocations(locations), jsonMapper );
new SegmentLoaderConfig().withLocations(locations), jsonMapper );
new SegmentLoaderConfig().withLocations(locations), jsonMapper );
public SegmentLoaderConfig withLocations(List<StorageLocationConfig> locations) { SegmentLoaderConfig retVal = new SegmentLoaderConfig(); retVal.locations = Lists.newArrayList(locations); retVal.deleteOnRemove = this.deleteOnRemove; retVal.infoDir = this.infoDir; return retVal; }
public SegmentLoader manufacturate(File storageDir) { return loader.withConfig( new SegmentLoaderConfig().withLocations(Collections.singletonList(new StorageLocationConfig().setPath(storageDir))) ); } }
.toInstance(new SegmentLoaderConfig().withLocations(Collections.emptyList())); binder.bind(CoordinatorClient.class).in(LazySingleton.class);