com.emc.mongoose.run.scenario.step.SequentialStep Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mongoose-run Show documentation
Show all versions of mongoose-run Show documentation
Mongoose is a high-load storage performance testing tool
The newest version!
package com.emc.mongoose.run.scenario.step;
import com.emc.mongoose.run.scenario.ScenarioParseException;
import com.emc.mongoose.ui.config.Config;
import com.emc.mongoose.ui.log.Loggers;
import java.util.Map;
import java.util.concurrent.CancellationException;
/**
Created by kurila on 02.02.16.
*/
public class SequentialStep
extends CompositeStepBase {
//
public SequentialStep(final Config appConfig, final Map subTree)
throws ScenarioParseException {
super(appConfig, subTree);
}
//
@Override
public String toString() {
return "sequentialStep#" + hashCode();
}
//
@Override
protected void invoke()
throws CancellationException {
synchronized(this) {
Loggers.MSG.info(
"{}: execute {} child steps sequentially", toString(), childSteps.size()
);
for(final Step subStep : childSteps) {
Loggers.MSG.debug("{}: child step \"{}\" start", toString(), subStep.toString());
subStep.run();
Loggers.MSG.debug("{}: child step \"{}\" is done", toString(), subStep.toString());
}
Loggers.MSG.info(
"{}: finished the sequential execution of {} child steps", toString(),
childSteps.size()
);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy