public class ForkedJvmTaskExecutionCommandCreator extends Object implements Serializable
Constructor and Description |
---|
ForkedJvmTaskExecutionCommandCreator() |
Modifier and Type | Method and Description |
---|---|
List<String> |
createForkedJvmTaskExecutionCommand(TaskContext taskContext,
ScriptResult forkEnvironmentScriptResult,
String serializedContextAbsolutePath,
org.objectweb.proactive.extensions.processbuilder.OSProcessBuilder processBuilder)
Creates a command to start a task inside a java virtual machine.
|
public ForkedJvmTaskExecutionCommandCreator()
public List<String> createForkedJvmTaskExecutionCommand(TaskContext taskContext, ScriptResult forkEnvironmentScriptResult, String serializedContextAbsolutePath, org.objectweb.proactive.extensions.processbuilder.OSProcessBuilder processBuilder) throws Exception
taskContext
- TaskContext object describing the task.forkEnvironmentScriptResult
- Result from a running fork environment script. If it is
of instance ForkEnvironmentScriptResult
, the script return
variables will be used for the construction of the command.serializedContextAbsolutePath
- The serialized TaskContext object which will be read by the virtual
machine to run the task.Exception
- If the TaskContextVariableExtractor
could not extract all variables from the
TaskContext.