ActionConfiguration, Describable, ForkingWorkerSpec, WorkerSpec@Deprecated public 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) |
Deprecated.
Adds a set of files to the classpath associated with the worker.
|
Iterable<File> |
getClasspath() |
Deprecated.
Gets the classpath associated with the worker.
|
ForkMode |
getForkMode() |
Deprecated.
Gets the forking mode for this worker, see
ForkMode. |
IsolationMode |
getIsolationMode() |
Deprecated.
Gets the isolation mode for this worker, see
IsolationMode. |
void |
setClasspath(Iterable<File> files) |
Deprecated.
Sets the classpath associated with the worker.
|
void |
setDisplayName(String displayName) |
Deprecated.
Sets the name to use when displaying this item of work.
|
void |
setForkMode(ForkMode forkMode) |
Deprecated.
Sets the forking mode for this worker, see
ForkMode. |
void |
setIsolationMode(IsolationMode isolationMode) |
Deprecated.
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()
ForkMode getForkMode()
ForkMode.ForkMode, defaults to ForkMode.AUTOvoid setForkMode(ForkMode forkMode)
ForkMode.forkMode - the forking mode for this worker, see ForkModevoid setDisplayName(String displayName)
displayName - the name of this item of work