com.emc.mongoose.scenario.step.CommandStep Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mongoose-scenario Show documentation
Show all versions of mongoose-scenario Show documentation
Mongoose is a high-load storage performance testing tool
The newest version!
package com.emc.mongoose.scenario.step;
import com.emc.mongoose.api.model.concurrent.LogContextThreadFactory;
import com.emc.mongoose.ui.config.Config;
import com.emc.mongoose.ui.log.LogUtil;
import com.emc.mongoose.ui.log.Loggers;
import static com.emc.mongoose.ui.log.LogUtil.BLUE;
import static com.emc.mongoose.ui.log.LogUtil.CYAN;
import static com.emc.mongoose.ui.log.LogUtil.RED;
import static com.emc.mongoose.ui.log.LogUtil.RESET;
import org.apache.logging.log4j.Level;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ThreadFactory;
/**
The specific scenario step executing a shell command.
*/
public class CommandStep
extends ConfigurableStepBase
implements ValueStep {
private static final ThreadFactory TF_STD_IN = new LogContextThreadFactory("stdInReader", true);
private static final ThreadFactory TF_STD_ERR = new LogContextThreadFactory("stdErrReader", true);
private final String cmd;
public CommandStep(final Config baseConfig) {
this(baseConfig, null, null);
}
private CommandStep(
final Config baseConfig, final List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy