Class BasicProcessExecutor
- java.lang.Object
-
- de.hybris.platform.mediaconversion.os.process.AbstractProcessExecutor
-
- de.hybris.platform.mediaconversion.os.process.rmi.BasicProcessExecutor
-
- All Implemented Interfaces:
ProcessExecutor
- Direct Known Subclasses:
EmbeddedProcessExecutor
public class BasicProcessExecutor extends AbstractProcessExecutor
-
-
Constructor Summary
Constructors Constructor Description BasicProcessExecutor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intexecute(ProcessContext context)Synchronously executes the givenProcessContext.voidquit()Terminates thisProcessExecutorand frees all associated resources.-
Methods inherited from class de.hybris.platform.mediaconversion.os.process.AbstractProcessExecutor
execute
-
-
-
-
Method Detail
-
execute
public int execute(ProcessContext context) throws java.io.IOException
Synchronously executes the givenProcessContext.- Parameters:
context- the context to execute- Returns:
- the exit code of the underlying os process.
- Throws:
java.io.IOException- on eny error while executing the process.
-
quit
public void quit() throws java.io.IOExceptionDescription copied from interface:ProcessExecutorTerminates thisProcessExecutorand frees all associated resources. Note the lifecycle of aProcessExecutorhas tenant scope, i.e. there is no need to callProcessExecutor.quit()except when shutting down the server (what will be done automatically).- Throws:
java.io.IOException- on any error
-
-