Package oracle.pgx.config
Class EnterpriseSchedulerFlagsConfigBuilder
java.lang.Object
oracle.pgx.config.EnterpriseSchedulerFlagsConfigBuilder
@Generated({"common/config/src/templates/ConfigBuilder.stg","common/config/config.gradle"})
public final class EnterpriseSchedulerFlagsConfigBuilder
extends Object
Builder for
EnterpriseSchedulerFlagsConfig.-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an empty EnterpriseSchedulerFlagsConfigBuilderConstructs a EnterpriseSchedulerFlagsConfigBuilder initialized with the values from the given mapConstructs a EnterpriseSchedulerFlagsConfigBuilder initialized with the values from the given configConstructs a EnterpriseSchedulerFlagsConfigBuilder initialized with the values from the given builder -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the EnterpriseSchedulerFlagsConfig with aparentPathofnull.Builds the EnterpriseSchedulerFlagsConfig.Builds aEnterpriseSchedulerFlagsConfigin-placeclear()Clears all values from the builderPuts all values from the given map into this builder.putAll(EnterpriseSchedulerFlagsConfig config) Puts all values from the given config into this buildersetEnableDebugSignal(boolean enableDebugSignal) [Internal use only] Iftrue, outputs a dump of internal state upon receiving a SIGQUIT signal.setFixThreadsUsedFromMain(boolean fixThreadsUsedFromMain) [Internal use only] Iftruefix threads used by work spawned by the main thread so that 0..N are used for an N-thread job.setLogToStderr(boolean logToStderr) Iftruelog to stderr.setMarkLoopForProfiling(String markLoopForProfiling) [Internal use only] ID for any additional loop to profile.setOverrideCoresPerSocket(int overrideCoresPerSocket) [Internal use only] Over-ride the core-to-socket allocation, treating a fixed number of cores as a socket for the purposes of the per-socket combining structures.setOverrideMemoryPlacement(boolean overrideMemoryPlacement) [Internal use only] Over-ride memory placement tags and use the OS defaults instead.setSelectPerformanceCounters(String selectPerformanceCounters) [Internal use only] Perf counter configuration string.setSelectPerformanceCountersJobRegions(int selectPerformanceCountersJobRegions) [Internal use only] Issue a region per job automatically.setSelectPerformanceCountersLibrary(int selectPerformanceCountersLibrary) [Internal use only] Perf counter library.setSelectPerformanceCountersPcmShowCodes(int selectPerformanceCountersPcmShowCodes) [Internal use only] Show PCM perf counter codes.setSelectPerformanceCountersShowStats(int selectPerformanceCountersShowStats) [Internal use only] Perf counter per-thread statistics.setSelectRegionPerformanceCounters(String selectRegionPerformanceCounters) [Internal use only] Region perf counter configuration string.setShowAllocations(boolean showAllocations) Iftrueshow memory allocation information.setShowDebug(boolean showDebug) [Internal use only] Iftrueenable debug output.setShowDeterministicOutput(boolean showDeterministicOutput) [Internal use only] Iftrueomit thread IDs in debug output (set to true for determinism in regression tests)setShowEnvironment(boolean showEnvironment) Iftrueshow version numbers and main environment settings at startup.setShowLogging(boolean showLogging) Iftrueenable summary logging -- this is available even in non-debug builds and includes information such as the machine h/w information obtained at start-up, and per-job / per-loop* information about the workload.setShowProfiling(boolean showProfiling) Iftrueshow profiling information.setShowSchedulerState(boolean showSchedulerState) Iftruedump scheduler state on each update.setShowWarnings(boolean showWarnings) Iftrueenable warnings.setSpinOnExit(boolean spinOnExit) [Internal use only] Iftruespin after execution, rather than exiting.setUseOpenmpThreadPool(boolean useOpenmpThreadPool) [Internal use only] Iftrue, use OpenMP based thread pool.toString()
-
Constructor Details
-
EnterpriseSchedulerFlagsConfigBuilder
public EnterpriseSchedulerFlagsConfigBuilder()Constructs an empty EnterpriseSchedulerFlagsConfigBuilder -
EnterpriseSchedulerFlagsConfigBuilder
public EnterpriseSchedulerFlagsConfigBuilder(Map<EnterpriseSchedulerFlagsConfig.Field, Object> values) Constructs a EnterpriseSchedulerFlagsConfigBuilder initialized with the values from the given map- Parameters:
values- a map containing configuration values
-
EnterpriseSchedulerFlagsConfigBuilder
Constructs a EnterpriseSchedulerFlagsConfigBuilder initialized with the values from the given config- Parameters:
config- the configuration to take the values from
-
EnterpriseSchedulerFlagsConfigBuilder
Constructs a EnterpriseSchedulerFlagsConfigBuilder initialized with the values from the given builder- Parameters:
builder- the builder to take the values from
-
-
Method Details
-
buildEnterpriseSchedulerFlagsConfig
public static EnterpriseSchedulerFlagsConfig buildEnterpriseSchedulerFlagsConfig(Consumer<EnterpriseSchedulerFlagsConfigBuilder> builderSetup) Builds aEnterpriseSchedulerFlagsConfigin-place- Parameters:
builderSetup- a consumer to setup a newly createdEnterpriseSchedulerFlagsConfig
-
putAll
public EnterpriseSchedulerFlagsConfigBuilder putAll(Map<EnterpriseSchedulerFlagsConfig.Field, Object> values) 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 EnterpriseSchedulerFlagsConfig.- Parameters:
parentPath- if not null, resolves relative paths against this parentPath- Returns:
- an instance of EnterpriseSchedulerFlagsConfig
-
build
Builds the EnterpriseSchedulerFlagsConfig with aparentPathofnull.- Returns:
- An instance of EnterpriseSchedulerFlagsConfig
- See Also:
-
toInputStream
- Returns:
- an
InputStreamrepresenting the config
-
getValues
- Returns:
- the raw config values
-
toString
-
setShowLogging
Iftrueenable summary logging -- this is available even in non-debug builds and includes information such as the machine h/w information obtained at start-up, and per-job / per-loop* information about the workload. -
setShowWarnings
Iftrueenable warnings. These are non-fatal errors -- e.g., if a NUMA-aware allocation cannot be placed on the intended socket. -
setShowEnvironment
Iftrueshow version numbers and main environment settings at startup. -
setShowProfiling
Iftrueshow profiling information. -
setShowSchedulerState
Iftruedump scheduler state on each update. -
setShowAllocations
Iftrueshow memory allocation information. -
setLogToStderr
Iftruelog to stderr. Iffalselog using PGX's default logging facility. -
setShowDebug
[Internal use only] Iftrueenable debug output. This is only available in debug builds. -
setUseOpenmpThreadPool
[Internal use only] Iftrue, use OpenMP based thread pool. If false use pthreads based thread pool. -
setOverrideCoresPerSocket
[Internal use only] Over-ride the core-to-socket allocation, treating a fixed number of cores as a socket for the purposes of the per-socket combining structures. This is for experimental use on processors like the M7 with core clusters. If0use h/w information -
setOverrideMemoryPlacement
public EnterpriseSchedulerFlagsConfigBuilder setOverrideMemoryPlacement(boolean overrideMemoryPlacement) [Internal use only] Over-ride memory placement tags and use the OS defaults instead. Iftrueuse OS defaults, iffalseuse workload tags -
setMarkLoopForProfiling
[Internal use only] ID for any additional loop to profile. If set, the format is name:idx, e.g. "FooBar:1" for the first execution of the FooBar loop, or "XXYZ" for all executions of the XXYZ loop. -
setSelectPerformanceCounters
public EnterpriseSchedulerFlagsConfigBuilder setSelectPerformanceCounters(String selectPerformanceCounters) [Internal use only] Perf counter configuration string. -
setSelectRegionPerformanceCounters
public EnterpriseSchedulerFlagsConfigBuilder setSelectRegionPerformanceCounters(String selectRegionPerformanceCounters) [Internal use only] Region perf counter configuration string. -
setSelectPerformanceCountersLibrary
public EnterpriseSchedulerFlagsConfigBuilder setSelectPerformanceCountersLibrary(int selectPerformanceCountersLibrary) [Internal use only] Perf counter library. -
setSelectPerformanceCountersPcmShowCodes
public EnterpriseSchedulerFlagsConfigBuilder setSelectPerformanceCountersPcmShowCodes(int selectPerformanceCountersPcmShowCodes) [Internal use only] Show PCM perf counter codes. -
setSelectPerformanceCountersJobRegions
public EnterpriseSchedulerFlagsConfigBuilder setSelectPerformanceCountersJobRegions(int selectPerformanceCountersJobRegions) [Internal use only] Issue a region per job automatically. -
setSelectPerformanceCountersShowStats
public EnterpriseSchedulerFlagsConfigBuilder setSelectPerformanceCountersShowStats(int selectPerformanceCountersShowStats) [Internal use only] Perf counter per-thread statistics. -
setShowDeterministicOutput
public EnterpriseSchedulerFlagsConfigBuilder setShowDeterministicOutput(boolean showDeterministicOutput) [Internal use only] Iftrueomit thread IDs in debug output (set to true for determinism in regression tests) -
setSpinOnExit
[Internal use only] Iftruespin after execution, rather than exiting. This provides an opportunity to attach a debugger or to inspect the placement of threads or of memory. -
setEnableDebugSignal
[Internal use only] Iftrue, outputs a dump of internal state upon receiving a SIGQUIT signal. -
setFixThreadsUsedFromMain
public EnterpriseSchedulerFlagsConfigBuilder setFixThreadsUsedFromMain(boolean fixThreadsUsedFromMain) [Internal use only] Iftruefix threads used by work spawned by the main thread so that 0..N are used for an N-thread job. This aids comparison with OpenMP. If this is not set then threads will be chosen dynamically by the runtime system.
-