Package oracle.pgx.config
Class BasicSchedulerConfigBuilder
java.lang.Object
oracle.pgx.config.BasicSchedulerConfigBuilder
@Generated({"common/config/src/templates/ConfigBuilder.stg","common/config/config.gradle"})
public final class BasicSchedulerConfigBuilder
extends Object
Builder for
BasicSchedulerConfig.-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an empty BasicSchedulerConfigBuilderConstructs a BasicSchedulerConfigBuilder initialized with the values from the given mapConstructs a BasicSchedulerConfigBuilder initialized with the values from the given configConstructs a BasicSchedulerConfigBuilder initialized with the values from the given builder -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the BasicSchedulerConfig with aparentPathofnull.Builds the BasicSchedulerConfig.static BasicSchedulerConfigbuildBasicSchedulerConfig(Consumer<BasicSchedulerConfigBuilder> builderSetup) Builds aBasicSchedulerConfigin-placeclear()Clears all values from the builderputAll(Map<BasicSchedulerConfig.Field, Object> values) Puts all values from the given map into this builder.putAll(BasicSchedulerConfig config) Puts all values from the given config into this buildersetNumWorkersAnalysis(int numWorkersAnalysis) how many worker threads to use for analysis taskssetNumWorkersFastTrackAnalysis(int numWorkersFastTrackAnalysis) how many worker threads to use for fast-track analysis taskssetNumWorkersIo(int numWorkersIo) how many worker threads to use for I/O tasks (load/refresh/write from/to disk).toString()
-
Constructor Details
-
BasicSchedulerConfigBuilder
public BasicSchedulerConfigBuilder()Constructs an empty BasicSchedulerConfigBuilder -
BasicSchedulerConfigBuilder
Constructs a BasicSchedulerConfigBuilder initialized with the values from the given map- Parameters:
values- a map containing configuration values
-
BasicSchedulerConfigBuilder
Constructs a BasicSchedulerConfigBuilder initialized with the values from the given config- Parameters:
config- the configuration to take the values from
-
BasicSchedulerConfigBuilder
Constructs a BasicSchedulerConfigBuilder initialized with the values from the given builder- Parameters:
builder- the builder to take the values from
-
-
Method Details
-
buildBasicSchedulerConfig
public static BasicSchedulerConfig buildBasicSchedulerConfig(Consumer<BasicSchedulerConfigBuilder> builderSetup) Builds aBasicSchedulerConfigin-place- Parameters:
builderSetup- a consumer to setup a newly createdBasicSchedulerConfig
-
putAll
Puts all values from the given map into this builder.- Parameters:
values- the values to put in the builder
-
putAll
Puts all values from the given config into this builder- Parameters:
config- the config to take the values from
-
clear
Clears all values from the builder -
build
Builds the BasicSchedulerConfig.- Parameters:
parentPath- if not null, resolves relative paths against this parentPath- Returns:
- an instance of BasicSchedulerConfig
-
build
Builds the BasicSchedulerConfig with aparentPathofnull.- Returns:
- An instance of BasicSchedulerConfig
- See Also:
-
toInputStream
- Returns:
- an
InputStreamrepresenting the config
-
getValues
- Returns:
- the raw config values
-
toString
-
setNumWorkersAnalysis
how many worker threads to use for analysis tasks -
setNumWorkersFastTrackAnalysis
how many worker threads to use for fast-track analysis tasks -
setNumWorkersIo
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.
-