public class Command extends Object
Modifier and Type | Field and Description |
---|---|
static int |
HOURS_TO_WAIT_FOR_STD_OUT_TO_CLOSE |
static int |
MINUTES_TO_WAIT_AFTER_STD_OUT_CLOSES |
Constructor and Description |
---|
Command(Executable executable,
Consumer<String> logConsumer) |
Modifier and Type | Method and Description |
---|---|
String |
execute(ErrorHandler errorHandler,
String... commands) |
static ErrorHandler |
throwingOnError() |
public static final int HOURS_TO_WAIT_FOR_STD_OUT_TO_CLOSE
public static final int MINUTES_TO_WAIT_AFTER_STD_OUT_CLOSES
public Command(Executable executable, Consumer<String> logConsumer)
public String execute(ErrorHandler errorHandler, String... commands) throws IOException, InterruptedException
IOException
InterruptedException
public static ErrorHandler throwingOnError()
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.