public class AbstractJvmExecTask<T extends AbstractJvmExecSpec> extends AbstractJvmModelExecTask implements ForkedJvmExecutable
Configures a task that will run an execution in a forked JVM.
Constructor and description |
---|
protected AbstractJvmExecTask
(WorkerExecutor we) A JVM exec task that can support workers. |
protected AbstractJvmExecTask
() A JVM exec task that cannot utilise workers. |
Type Params | Return Type | Name and description |
---|---|---|
|
protected WorkerAppExecutorFactory<StandardWorkerAppParameters> |
createExecutorFactory() Create a worker app executor factory. |
|
protected WorkerAppParameterFactory<StandardWorkerAppParameters> |
createParameterFactory() Create a worker app parameter factory. |
Methods inherited from class | Name |
---|---|
class AbstractJvmModelExecTask |
createExecutorFactory, createParameterFactory, entrypoint, entrypoint, exec, getJvmExecSpec, getProjectOperations, jvm, jvm, preventExecutionMode, process, process, runnerSpec, runnerSpec, setAwaitMode, setExecSpec, setExecutionMode |
A JVM exec task that can support workers.
we
- WorkerExecutor to use.A JVM exec task that cannot utilise workers.
Create a worker app executor factory.
By default, this factory will look for a public static int/void main
method. If this method uses
System.exit
to return exit codes, then it will cause workers to exit prematurely. Only use the default
when either only using ExecutionMode.JAVA_EXEC
or if the main
method does not not use
System.exit
.
For all other cases override this and provide your own implementation.
Create a worker app parameter factory.