public class SegmentLoaderConfig extends Object
| Constructor and Description |
|---|
SegmentLoaderConfig() |
| Modifier and Type | Method and Description |
|---|---|
int |
getAnnounceIntervalMillis() |
long |
getCombinedMaxSize() |
int |
getDropSegmentDelayMillis() |
File |
getInfoDir() |
List<StorageLocationConfig> |
getLocations() |
int |
getNumBootstrapThreads() |
int |
getNumLoadingThreads() |
int |
getNumThreadsToLoadSegmentsIntoPageCacheOnBootstrap() |
int |
getNumThreadsToLoadSegmentsIntoPageCacheOnDownload() |
int |
getStatusQueueMaxSize() |
boolean |
isDeleteOnRemove() |
boolean |
isLazyLoadOnStart() |
List<StorageLocation> |
toStorageLocations()
Convert StorageLocationConfig objects to StorageLocation objects
|
String |
toString() |
SegmentLoaderConfig |
withInfoDir(File infoDir) |
SegmentLoaderConfig |
withLocations(List<StorageLocationConfig> locations) |
public List<StorageLocationConfig> getLocations()
public boolean isLazyLoadOnStart()
public boolean isDeleteOnRemove()
public int getDropSegmentDelayMillis()
public int getAnnounceIntervalMillis()
public int getNumLoadingThreads()
public int getNumBootstrapThreads()
public int getNumThreadsToLoadSegmentsIntoPageCacheOnDownload()
public int getNumThreadsToLoadSegmentsIntoPageCacheOnBootstrap()
public File getInfoDir()
public int getStatusQueueMaxSize()
public long getCombinedMaxSize()
public SegmentLoaderConfig withLocations(List<StorageLocationConfig> locations)
public SegmentLoaderConfig withInfoDir(File infoDir)
public List<StorageLocation> toStorageLocations()
Note: getLocations() is called instead of variable access because some testcases overrides this method
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.