This commit is contained in:
phact 2020-03-03 14:53:19 -05:00
parent 026c9d832d
commit 28dbb5b0ac

View File

@ -0,0 +1,26 @@
package io.nosqlbench.engine.extensions.globalvars;
import com.codahale.metrics.MetricRegistry;
import io.nosqlbench.engine.api.extensions.ScriptingPluginInfo;
import io.nosqlbench.virtdata.library.basics.core.threadstate.SharedState;
import org.slf4j.Logger;
import javax.script.ScriptContext;
import java.util.concurrent.ConcurrentHashMap;
public class GlobalVarsScriptingPluginData implements ScriptingPluginInfo<ConcurrentHashMap> {
@Override
public String getDescription() {
return "The global access map from shared state";
}
@Override
public ConcurrentHashMap<String, Object> getExtensionObject(Logger logger, MetricRegistry metricRegistry, ScriptContext scriptContext) {
return SharedState.gl_ObjectMap;
}
@Override
public String getBaseVariableName() {
return "globalvars";
}
}