Class ProcessCommand
- java.lang.Object
-
- de.hybris.platform.mediaconversion.os.ProcessCommand
-
- All Implemented Interfaces:
java.io.Serializable
public class ProcessCommand extends java.lang.Object implements java.io.SerializableCommand line parameters and environment used for process execution.- See Also:
Runtime.exec(String[], String[], File), Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]getCommand()Accesses the actual command to call and it's arguments.java.io.FilegetDirectory()Accesses the directory in which the command is executed.java.lang.String[]getEnvironment()Accesses environment variables to set when executing the command.
-
-
-
Method Detail
-
getCommand
public java.lang.String[] getCommand()
Accesses the actual command to call and it's arguments.- Returns:
- the command as array
- See Also:
Runtime.exec(String[], String[], File)
-
getEnvironment
public java.lang.String[] getEnvironment()
Accesses environment variables to set when executing the command.- Returns:
- the environment variable to set (or
nullif the all environment variables should be inherited from the executing JVM). - See Also:
Runtime.exec(String[], String[], File)
-
getDirectory
public java.io.File getDirectory()
Accesses the directory in which the command is executed.- Returns:
- the directory in which the process is executed (or
nullif the working directory should be inherited from the executing JVM).
-
-