public class WorkerSubmission<P extends SerializableWorkerAppParameters>
A utility class for submitting JVM jobs on workers for Gradle 6.0+
P - The type of the POJO/POGO that holds the parameters| Type Params | Return Type | Name and description |
|---|---|---|
|
public org.ysb33r.grolifant5.api.core.jvm.worker.WorkerPromise |
toWorkQueue(org.ysb33r.grolifant5.api.core.jvm.worker.WorkerIsolation isolationMode, WorkerExecutor worker, org.ysb33r.grolifant5.api.core.jvm.worker.WorkerExecSpec workerExecSpec, org.ysb33r.grolifant5.api.remote.worker.WorkerAppExecutorFactory<P> workerAppExecutorFactory, org.ysb33r.grolifant5.api.core.jvm.worker.WorkerAppParameterFactory<P> parameterFactory)Submits this to a worker queue using an appropriate isolation mode. |
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.workerExecSpec - A worker execution specificationworkerAppExecutorFactory - A factory instances that can create executor logic.parameterFactory - A factory which can create parameters and populate them from a
JavaExecSpec..