ActionConfiguration, Describable, ForkingWorkerSpec, WorkerSpecpublic interface WorkerConfiguration extends ActionConfiguration, ForkingWorkerSpec, Describable
WorkerExecutor.
workerExecutor.submit(RunnableWorkImpl.class) { WorkerConfiguration conf ->
conf.isolationMode = IsolationMode.PROCESS
forkOptions { JavaForkOptions options ->
options.maxHeapSize = "512m"
options.systemProperty 'some.prop', 'value'
options.jvmArgs "-server"
}
classpath configurations.fooLibrary
conf.params = [ "foo", file('bar') ]
}
| Modifier and Type | Method | Description |
|---|---|---|
void |
classpath(Iterable<File> files) |
Adds a set of files to the classpath associated with the worker.
|
Iterable<File> |
getClasspath() |
Gets the classpath associated with the worker.
|
ForkMode |
getForkMode() |
Deprecated.
|
IsolationMode |
getIsolationMode() |
Gets the isolation mode for this worker, see
IsolationMode. |
void |
setClasspath(Iterable<File> files) |
Sets the classpath associated with the worker.
|
void |
setDisplayName(String displayName) |
Sets the name to use when displaying this item of work.
|
void |
setForkMode(ForkMode forkMode) |
Deprecated.
|
void |
setIsolationMode(IsolationMode isolationMode) |
Sets the isolation mode for this worker, see
IsolationMode. |
getParams, params, setParamsgetDisplayNameforkOptions, getForkOptionsIsolationMode getIsolationMode()
IsolationMode.IsolationMode, defaults to IsolationMode.AUTOvoid setIsolationMode(IsolationMode isolationMode)
IsolationMode.isolationMode - the forking mode for this worker, see IsolationModevoid classpath(Iterable<File> files)
files - - the files to add to the classpathvoid setClasspath(Iterable<File> files)
files - - the files to set the classpath toIterable<File> getClasspath()
@Deprecated ForkMode getForkMode()
ForkMode.ForkMode, defaults to ForkMode.AUTO@Deprecated void setForkMode(ForkMode forkMode)
ForkMode.forkMode - the forking mode for this worker, see ForkModevoid setDisplayName(String displayName)
displayName - the name of this item of work