Lines Matching defs:Command
46 public final class Command {
55 public Command(String... args) {
59 public Command(List<String> args) {
68 private Command(Builder builder) {
77 throw new IllegalStateException("Maximum command length " + builder.maxLength
92 .command(args)
158 * Executes a command with a specified timeout. If the process does not
162 * @return the command's output, or null if the command timed out
182 * Executes the command on a new background thread. This method returns
185 * @return a future to retrieve the command's output.
188 ExecutorService executor = Threads.fixedThreadsExecutor("command", 1);
212 + " from destroyed command " + this);
261 * Sets the working directory from which the command will be executed.
281 public Command build() {
282 return new Command(this);