|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.enterprise.communications.command.impl.start.server.ProcessExec
public class ProcessExec
Used to execute a process. Uses 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 Summary | |
|---|---|
ProcessExec()
|
|
| Method Summary | |
|---|---|
StartCommandResponse |
execute(StartCommand command)
This executes any operating system process as described in the given start command. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProcessExec()
| Method Detail |
|---|
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 start
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||