Class BasicSchedulerConfigBuilder


  • @Generated({"common/config/src/templates/ConfigBuilder.stg","common/config/config.gradle"})
    public final class BasicSchedulerConfigBuilder
    extends java.lang.Object
    • Constructor Detail

      • BasicSchedulerConfigBuilder

        public BasicSchedulerConfigBuilder()
        Constructs an empty BasicSchedulerConfigBuilder
      • BasicSchedulerConfigBuilder

        public BasicSchedulerConfigBuilder​(java.util.Map<BasicSchedulerConfig.Field,​java.lang.Object> values)
        Constructs a BasicSchedulerConfigBuilder initialized with the values from the given map
        Parameters:
        values - a map containing configuration values
      • BasicSchedulerConfigBuilder

        public BasicSchedulerConfigBuilder​(BasicSchedulerConfig config)
        Constructs a BasicSchedulerConfigBuilder initialized with the values from the given config
        Parameters:
        config - the configuration to take the values from
      • BasicSchedulerConfigBuilder

        public BasicSchedulerConfigBuilder​(BasicSchedulerConfigBuilder builder)
        Constructs a BasicSchedulerConfigBuilder initialized with the values from the given builder
        Parameters:
        builder - the builder to take the values from
    • Method Detail

      • build

        public BasicSchedulerConfig build​(java.lang.String parentPath)
        Builds the BasicSchedulerConfig.
        Parameters:
        parentPath - if not null, resolves relative paths against this parentPath
        Returns:
        an instance of BasicSchedulerConfig
      • build

        public BasicSchedulerConfig build()
        Builds the BasicSchedulerConfig with a parentPath of null.
        Returns:
        An instance of BasicSchedulerConfig
        See Also:
        build(String)
      • toInputStream

        public java.io.InputStream toInputStream()
        Returns:
        an InputStream representing the config
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • setNumWorkersAnalysis

        public BasicSchedulerConfigBuilder setNumWorkersAnalysis​(int numWorkersAnalysis)
        how many worker threads to use for analysis tasks
      • setNumWorkersFastTrackAnalysis

        public BasicSchedulerConfigBuilder setNumWorkersFastTrackAnalysis​(int numWorkersFastTrackAnalysis)
        how many worker threads to use for fast-track analysis tasks
      • setNumWorkersIo

        public BasicSchedulerConfigBuilder setNumWorkersIo​(int numWorkersIo)
        how many worker threads to use for I/O tasks (load/refresh/write from/to disk). This value won't affect file-based loaders, as they're always single-threaded. Database loaders will open a new connection for each I/O worker.