public class Command extends Object
| Modifier and Type | Method and Description |
|---|---|
CommandResult |
exec(int timeOut)
Executes this command in a synchronous manner.
|
int |
pid() |
public int pid()
public CommandResult exec(int timeOut) throws CommandException
timeOut is set to a value less than or equal to zero, this method
does never time out.
Otherwise times out in timeOut milliseconds.timeOut - durationCommandException - The command failed during execution.Copyright © 2017. All rights reserved.