public abstract class ExecWithLoggingHelpers
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
ExecWithLoggingHelpers.ExecRunner |
Modifier and Type | Field and Description |
---|---|
static ConfigKey<java.lang.String> |
LOG_PREFIX |
static ConfigKey<java.lang.Boolean> |
NO_STDERR_LOGGING |
static ConfigKey<java.lang.Boolean> |
NO_STDOUT_LOGGING |
static ConfigKey<java.io.OutputStream> |
STDERR |
static ConfigKey<java.io.OutputStream> |
STDOUT |
Constructor and Description |
---|
ExecWithLoggingHelpers(java.lang.String shortName)
takes a very short name for use in blocking details, e.g.
|
Modifier and Type | Method and Description |
---|---|
int |
execCommands(java.util.Map<java.lang.String,?> props,
java.lang.String summaryForLogging,
java.util.List<java.lang.String> commands,
java.util.Map<java.lang.String,?> env) |
int |
execScript(java.util.Map<java.lang.String,?> props,
java.lang.String summaryForLogging,
java.util.List<java.lang.String> commands,
java.util.Map<java.lang.String,?> env) |
int |
execWithLogging(java.util.Map<java.lang.String,?> props,
java.lang.String summaryForLogging,
java.util.List<java.lang.String> commands,
java.util.Map<java.lang.String,?> env,
ExecWithLoggingHelpers.ExecRunner execCommand) |
int |
execWithLogging(java.util.Map<java.lang.String,?> props,
java.lang.String summaryForLogging,
java.util.List<java.lang.String> commands,
java.util.Map<java.lang.String,?> env,
java.lang.String expectedCommandHeaders,
ExecWithLoggingHelpers.ExecRunner execCommand) |
ExecWithLoggingHelpers |
logger(org.slf4j.Logger commandLogger) |
public static final ConfigKey<java.io.OutputStream> STDOUT
public static final ConfigKey<java.io.OutputStream> STDERR
public static final ConfigKey<java.lang.Boolean> NO_STDOUT_LOGGING
public static final ConfigKey<java.lang.Boolean> NO_STDERR_LOGGING
public static final ConfigKey<java.lang.String> LOG_PREFIX
public ExecWithLoggingHelpers(java.lang.String shortName)
public ExecWithLoggingHelpers logger(org.slf4j.Logger commandLogger)
public int execScript(java.util.Map<java.lang.String,?> props, java.lang.String summaryForLogging, java.util.List<java.lang.String> commands, java.util.Map<java.lang.String,?> env)
public int execCommands(java.util.Map<java.lang.String,?> props, java.lang.String summaryForLogging, java.util.List<java.lang.String> commands, java.util.Map<java.lang.String,?> env)
public int execWithLogging(java.util.Map<java.lang.String,?> props, java.lang.String summaryForLogging, java.util.List<java.lang.String> commands, java.util.Map<java.lang.String,?> env, ExecWithLoggingHelpers.ExecRunner execCommand)
public int execWithLogging(java.util.Map<java.lang.String,?> props, java.lang.String summaryForLogging, java.util.List<java.lang.String> commands, java.util.Map<java.lang.String,?> env, java.lang.String expectedCommandHeaders, ExecWithLoggingHelpers.ExecRunner execCommand)