private final double hashLoadFactor;
private final Object lock = new Object();
private final Class<?> factoryClass;
public KratiStorageConfiguration(VoldemortConfig config) {
Props props = config.getAllProps();
File kratiDir = new File(config.getDataDirectory(), "krati");
kratiDir.mkdirs();
this.dataDirectory = kratiDir.getAbsolutePath();
this.segmentFileSizeMb = props.getInt("krati.segment.filesize.mb", 256);
this.hashLoadFactor = props.getDouble("krati.load.factor", 0.75);
this.initLevel = props.getInt("krati.initlevel", 2);
this.lockStripes = props.getInt("krati.lock.stripes", 50);
this.factoryClass = ReflectUtils.loadClass(props.getString("krati.segment.factory.class",
MappedSegmentFactory.class.getName()));
}