public class AbstractJvmExecSpec<T extends AbstractJvmExecSpec<T>>
A base class for specifying the execution of an entrypoint on a forked JVM.
| Constructor and description |
|---|
protected AbstractJvmExecSpec
(ProjectOperations po) |
protected AbstractJvmExecSpec
(ConfigCacheSafeOperations po)Constructs the basics of a Jvm execution specification. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public void |
copyTo(JavaExecSpec execSpec)Copies this specification to a standard JavaExecSpec. |
|
public T |
entrypoint(Action<JvmEntryPoint> configurator)Configures the entrypoint for the JVM executable |
|
public T |
entrypoint(groovy.lang.Closure<?> configurator)Configures the entrypoint for the JVM executable |
|
protected JvmAppRunnerSpec |
getJvmAppRunnerSpec() |
|
public T |
jvm(Action<JavaForkOptionsWithEnvProvider> configurator)Configures a JVM that will be forked. |
|
public T |
jvm(groovy.lang.Closure<?> configurator)Configures a JVM that will be forked. |
|
public T |
process(Action<ProcessExecutionSpec> configurator)Configures the stream redirection and exit code checks. |
|
public T |
process(groovy.lang.Closure<?> configurator)Configures the stream redirections and exit checks. |
|
public T |
runnerSpec(Action<CmdlineArgumentSpec> configurator)Configures the arguments. |
|
public T |
runnerSpec(groovy.lang.Closure<?> configurator)Configures the arguments. |
<P extends SerializableWorkerAppParameters> |
public WorkerPromise |
submitToWorkQueue(WorkerIsolation isolationMode, WorkerExecutor worker, org.ysb33r.grolifant5.api.remote.worker.WorkerAppExecutorFactory<P> workerAppExecutorFactory, WorkerAppParameterFactory<P> parameterFactory)Submits this to a worker queue using an appropriate isolation mode. |
Constructs the basics of a Jvm execution specification.
po - Implementation of ConfigCacheSafeOperations.Copies this specification to a standard JavaExecSpec.
execSpec - Target execution specification.Configures the entrypoint for the JVM executable
configurator - An action to configure the entrypointConfigures the entrypoint for the JVM executable
configurator - A closure to configure the entrypointConfigures a JVM that will be forked.
configurator - An action to configure the JVM's fork options.Configures a JVM that will be forked.
configurator - A closure to configure the JVM's fork options.Configures the stream redirection and exit code checks.
configurator - An action to configure the execution.Configures the stream redirections and exit checks.
configurator - A closure to configure the execution.Configures the arguments.
configurator - An action to configure the arguments.Configures the arguments.
configurator - A closure to configure the arguments.Submits this to a worker queue using an appropriate isolation mode.
isolationMode - Isolation mode which is either classpath isolated or out of process.worker - A worker execution instance.workerAppExecutorFactory - A factory instances that can create executor logic.parameterFactory - A factory which can create parameters and populate them from a JavaExecSpec.P - The type of the POJO/POGO that holds the parameters.