com.emc.mongoose.base.load.step.linear.LinearLoadStepExtension Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mongoose-base Show documentation
Show all versions of mongoose-base Show documentation
Mongoose is a high-load storage performance testing tool
package com.emc.mongoose.base.load.step.linear;
import com.emc.mongoose.base.env.Extension;
import com.emc.mongoose.base.env.ExtensionBase;
import com.emc.mongoose.base.load.step.LoadStepFactory;
import com.emc.mongoose.base.metrics.MetricsManager;
import com.github.akurilov.confuse.Config;
import com.github.akurilov.confuse.SchemaProvider;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
public final class LinearLoadStepExtension
extends ExtensionBase
implements LoadStepFactory {
public static final String TYPE = "Load";
private static final List RES_INSTALL_FILES = Collections.unmodifiableList(
Arrays.asList());
@Override
public final String id() {
return TYPE;
}
@Override
@SuppressWarnings("unchecked")
public final T createLocal(
final Config baseConfig, final List extensions, final List contextConfigs,
final MetricsManager metricsManager) {
return (T) new LinearLoadStepLocal(baseConfig, extensions, contextConfigs, metricsManager);
}
@Override
@SuppressWarnings("unchecked")
public final U createClient(
final Config baseConfig, final List extensions, final MetricsManager metricsManager) {
return (U) new LinearLoadStepClient(baseConfig, extensions, null, metricsManager);
}
@Override
public final SchemaProvider schemaProvider() {
return null;
}
@Override
protected final String defaultsFileName() {
return null;
}
@Override
protected final List resourceFilesToInstall() {
return RES_INSTALL_FILES;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy