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 |
|
public JvmEntryPoint |
getEntrypoint()Get direct access to the JvmEntryPoint instance. |
|
public JavaForkOptionsWithEnvProvider |
getJvm()Direct access to the JavaForkOptionsWithEnvProvider instance. |
|
protected JvmAppRunnerSpec |
getJvmAppRunnerSpec() |
|
public ProcessExecutionSpec |
getProcess()Get direct access to the ProcessExecutionSpec instance. |
|
public CmdlineArgumentSpec |
getRunnerSpec()Get direct access to the CmdlineArgumentSpec instance. |
|
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. |
|
public ExecOutput |
submitAsJavaExec()Runs a job using javaexec. |
<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. |
|
public WorkerPromise |
submitToWorkQueue(WorkerIsolation isolationMode, WorkerExecutor worker, Class<? extends WorkerAppCmdline> workerType)This method submits this job to a worker queue using a special worker type to invoke the cla |
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 entrypointGet direct access to the JvmEntryPoint instance.
Direct access to the JavaForkOptionsWithEnvProvider instance.
Get direct access to the ProcessExecutionSpec instance.
Get direct access to the CmdlineArgumentSpec instance.
Configures 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. Runs a job using javaexec.
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 instance 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.This method submits this job to a worker queue using a special worker type to invoke the cla
isolationMode - Isolation mode which is either classpath isolated or out of process.worker - Worker executor to submit to.workerType - The class type that will be launched inside the worker.