mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-01-11 00:12:04 -06:00
v0
This commit is contained in:
parent
026c9d832d
commit
28dbb5b0ac
@ -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";
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user