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.ObjectBuilder 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 BasicSchedulerConfigbuild()Builds the BasicSchedulerConfig with aparentPathofnull.BasicSchedulerConfigbuild(java.lang.String parentPath)Builds the BasicSchedulerConfig.static BasicSchedulerConfigbuildBasicSchedulerConfig(java.util.function.Consumer<BasicSchedulerConfigBuilder> builderSetup)Builds aBasicSchedulerConfigin-placeBasicSchedulerConfigBuilderclear()Clears all values from the builderjava.util.Map<BasicSchedulerConfig.Field,java.lang.Object>getValues()BasicSchedulerConfigBuilderputAll(java.util.Map<BasicSchedulerConfig.Field,java.lang.Object> values)Puts all values from the given map into this builder.BasicSchedulerConfigBuilderputAll(BasicSchedulerConfig config)Puts all values from the given config into this builderBasicSchedulerConfigBuildersetNumWorkersAnalysis(int numWorkersAnalysis)how many worker threads to use for analysis tasksBasicSchedulerConfigBuildersetNumWorkersFastTrackAnalysis(int numWorkersFastTrackAnalysis)how many worker threads to use for fast-track analysis tasksBasicSchedulerConfigBuildersetNumWorkersIo(int numWorkersIo)how many worker threads to use for I/O tasks (load/refresh/write from/to disk).java.io.InputStreamtoInputStream()java.lang.StringtoString() 
 - 
 
- 
- 
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 aBasicSchedulerConfigin-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 aparentPathofnull.- Returns:
 - An instance of BasicSchedulerConfig
 - See Also:
 build(String)
 
- 
toInputStream
public java.io.InputStream toInputStream()
- Returns:
 - an 
InputStreamrepresenting 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:
 toStringin 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. 
 - 
 
 -