com.emc.mongoose.base.item.op.path.PathOperationsBuilderImpl 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.item.op.path;
import com.emc.mongoose.base.item.PathItem;
import com.emc.mongoose.base.item.op.OperationsBuilderImpl;
import java.io.IOException;
import java.util.List;
/** Created by kurila on 30.01.17. */
public class PathOperationsBuilderImpl>
extends OperationsBuilderImpl implements PathOperationsBuilder {
public PathOperationsBuilderImpl(final int originIndex) {
super(originIndex);
}
@Override
@SuppressWarnings("unchecked")
public O buildOp(final I pathItem) throws IOException {
final String outputPath = getNextOutputPath();
return (O) new PathOperationImpl<>(originIndex, opType, pathItem, getNextCredential(outputPath));
}
@Override
@SuppressWarnings("unchecked")
public void buildOps(final List items, final List buff) throws IOException {
String outputPath;
for (final I nextItem : items) {
outputPath = getNextOutputPath();
buff.add(
(O) new PathOperationImpl<>(
originIndex, opType, nextItem, getNextCredential(outputPath)));
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy