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 java.lang.Object
Builder forBasicSchedulerConfig
.
-
-
Constructor Summary
Constructors Constructor Description BasicSchedulerConfigBuilder()
Constructs an empty BasicSchedulerConfigBuilderBasicSchedulerConfigBuilder(java.util.Map<BasicSchedulerConfig.Field,java.lang.Object> values)
Constructs a BasicSchedulerConfigBuilder initialized with the values from the given mapBasicSchedulerConfigBuilder(BasicSchedulerConfig config)
Constructs a BasicSchedulerConfigBuilder initialized with the values from the given configBasicSchedulerConfigBuilder(BasicSchedulerConfigBuilder builder)
Constructs a BasicSchedulerConfigBuilder initialized with the values from the given builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BasicSchedulerConfig
build()
Builds the BasicSchedulerConfig with aparentPath
ofnull
.BasicSchedulerConfig
build(java.lang.String parentPath)
Builds the BasicSchedulerConfig.static BasicSchedulerConfig
buildBasicSchedulerConfig(java.util.function.Consumer<BasicSchedulerConfigBuilder> builderSetup)
Builds aBasicSchedulerConfig
in-placeBasicSchedulerConfigBuilder
clear()
Clears all values from the builderjava.util.Map<BasicSchedulerConfig.Field,java.lang.Object>
getValues()
BasicSchedulerConfigBuilder
putAll(java.util.Map<BasicSchedulerConfig.Field,java.lang.Object> values)
Puts all values from the given map into this builder.BasicSchedulerConfigBuilder
putAll(BasicSchedulerConfig config)
Puts all values from the given config into this builderBasicSchedulerConfigBuilder
setNumWorkersAnalysis(int numWorkersAnalysis)
how many worker threads to use for analysis tasksBasicSchedulerConfigBuilder
setNumWorkersFastTrackAnalysis(int numWorkersFastTrackAnalysis)
how many worker threads to use for fast-track analysis tasksBasicSchedulerConfigBuilder
setNumWorkersIo(int numWorkersIo)
how many worker threads to use for I/O tasks (load/refresh/write from/to disk).java.io.InputStream
toInputStream()
java.lang.String
toString()
-
-
-
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
-
buildBasicSchedulerConfig
public static BasicSchedulerConfig buildBasicSchedulerConfig(java.util.function.Consumer<BasicSchedulerConfigBuilder> builderSetup)
Builds aBasicSchedulerConfig
in-place- Parameters:
builderSetup
- a consumer to setup a newly createdBasicSchedulerConfig
-
putAll
public BasicSchedulerConfigBuilder putAll(java.util.Map<BasicSchedulerConfig.Field,java.lang.Object> values)
Puts all values from the given map into this builder.- Parameters:
values
- the values to put in the builder
-
putAll
public BasicSchedulerConfigBuilder putAll(BasicSchedulerConfig config)
Puts all values from the given config into this builder- Parameters:
config
- the config to take the values from
-
clear
public BasicSchedulerConfigBuilder clear()
Clears all values from the builder
-
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 aparentPath
ofnull
.- Returns:
- An instance of BasicSchedulerConfig
- See Also:
build(String)
-
toInputStream
public java.io.InputStream toInputStream()
- Returns:
- an
InputStream
representing the config
-
getValues
public java.util.Map<BasicSchedulerConfig.Field,java.lang.Object> getValues()
- Returns:
- the raw config values
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.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.
-
-