public class ProcessExec extends Object
StartCommand as the object used to encapsulate the metadata about the process
to start.
Warning: caution should be exercised when using this class - it allows any process to be started with no security restrictions.
| Constructor and Description |
|---|
ProcessExec() |
| Modifier and Type | Method and Description |
|---|---|
StartCommandResponse |
execute(StartCommand command)
This executes any operating system process as described in the given start command.
|
public StartCommandResponse execute(StartCommand command)
StartCommand.getWaitForExit(). On error, the exception will be
returned in the returned response.
Subclasses may override this method to accept different types of commands; they just need to ensure that if
they call this super method, that the command is of type StartCommand.
command - the command that contains metadata about the process to startCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.