public static class SandboxPoolConfiguration.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
SandboxPoolConfiguration |
build() |
SandboxPoolConfiguration.Builder |
withBootstrapClasses(List<Class<?>> bootstrapClasses)
Classes required to bootstrap a sandbox process.
|
SandboxPoolConfiguration.Builder |
withConcurrencyLevel(int concurrencyLevel)
Number of sandbox processes.
|
SandboxPoolConfiguration.Builder |
withDebugPortOffset(Integer offset)
Opens debug port for each sandbox process starting with given offset.
|
SandboxPoolConfiguration.Builder |
withErrorConsumer(SandboxErrorConsumer errorConsumer)
The sandbox server and
SandboxTask log a debug message by writing it to standard error. |
SandboxPoolConfiguration.Builder |
withJavaOptions(String... options) |
SandboxPoolConfiguration.Builder |
withLogLevel(Level logLevel) |
SandboxPoolConfiguration.Builder |
withMemoryInMegabytes(int memoryLimitInMegabytes)
Limits memory of sandbox process.
|
SandboxPoolConfiguration.Builder |
withStackInMegabytes(int stackInMegabytes)
Sets the default stack size of sandbox process threads.
|
SandboxPoolConfiguration.Builder |
withStartupTimeLimit(Duration timeLimit)
Sandbox process taking longer that this time to start will be killed.
|
public SandboxPoolConfiguration.Builder withConcurrencyLevel(int concurrencyLevel)
public SandboxPoolConfiguration.Builder withStartupTimeLimit(Duration timeLimit)
public SandboxPoolConfiguration.Builder withMemoryInMegabytes(int memoryLimitInMegabytes)
-Xmx
of the
java command line.public SandboxPoolConfiguration.Builder withStackInMegabytes(int stackInMegabytes)
-Xss
of the
java command line.public SandboxPoolConfiguration.Builder withBootstrapClasses(List<Class<?>> bootstrapClasses)
public SandboxPoolConfiguration.Builder withErrorConsumer(SandboxErrorConsumer errorConsumer)
SandboxTask
log a debug message by writing it to standard error.
This parameter allows us to specify the method to consume standard error of a sandbox process.public SandboxPoolConfiguration.Builder withLogLevel(Level logLevel)
public SandboxPoolConfiguration.Builder withJavaOptions(String... options)
public SandboxPoolConfiguration.Builder withDebugPortOffset(Integer offset)
public SandboxPoolConfiguration build()
Copyright © 2003–2021 Atlassian. All rights reserved.