Package org.apache.druid.segment.loading
Class SegmentLoaderConfig
- java.lang.Object
-
- org.apache.druid.segment.loading.SegmentLoaderConfig
-
public class SegmentLoaderConfig extends Object
-
-
Constructor Summary
Constructors Constructor Description SegmentLoaderConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetAnnounceIntervalMillis()longgetCombinedMaxSize()intgetDropSegmentDelayMillis()FilegetInfoDir()List<StorageLocationConfig>getLocations()intgetNumBootstrapThreads()intgetNumLoadingThreads()intgetNumThreadsToLoadSegmentsIntoPageCacheOnBootstrap()intgetNumThreadsToLoadSegmentsIntoPageCacheOnDownload()intgetStatusQueueMaxSize()booleanisDeleteOnRemove()booleanisLazyLoadOnStart()List<StorageLocation>toStorageLocations()Convert StorageLocationConfig objects to StorageLocation objectsStringtoString()SegmentLoaderConfigwithInfoDir(File infoDir)SegmentLoaderConfigwithLocations(List<StorageLocationConfig> locations)
-
-
-
Method Detail
-
getLocations
public List<StorageLocationConfig> getLocations()
-
isLazyLoadOnStart
public boolean isLazyLoadOnStart()
-
isDeleteOnRemove
public boolean isDeleteOnRemove()
-
getDropSegmentDelayMillis
public int getDropSegmentDelayMillis()
-
getAnnounceIntervalMillis
public int getAnnounceIntervalMillis()
-
getNumLoadingThreads
public int getNumLoadingThreads()
-
getNumBootstrapThreads
public int getNumBootstrapThreads()
-
getNumThreadsToLoadSegmentsIntoPageCacheOnDownload
public int getNumThreadsToLoadSegmentsIntoPageCacheOnDownload()
-
getNumThreadsToLoadSegmentsIntoPageCacheOnBootstrap
public int getNumThreadsToLoadSegmentsIntoPageCacheOnBootstrap()
-
getInfoDir
public File getInfoDir()
-
getStatusQueueMaxSize
public int getStatusQueueMaxSize()
-
getCombinedMaxSize
public long getCombinedMaxSize()
-
withLocations
public SegmentLoaderConfig withLocations(List<StorageLocationConfig> locations)
-
withInfoDir
public SegmentLoaderConfig withInfoDir(File infoDir)
-
toStorageLocations
public List<StorageLocation> toStorageLocations()
Convert StorageLocationConfig objects to StorageLocation objectsNote:
getLocations()is called instead of variable access because some testcases overrides this method
-
-