Class ScenarioContext

java.lang.Object
javax.script.SimpleScriptContext
io.nosqlbench.engine.api.scripting.ScriptEnvBuffer
io.nosqlbench.engine.core.script.ScenarioContext
All Implemented Interfaces:
javax.script.ScriptContext

public class ScenarioContext
extends io.nosqlbench.engine.api.scripting.ScriptEnvBuffer
  • Field Summary

    Fields inherited from class javax.script.SimpleScriptContext

    engineScope, errorWriter, globalScope, reader, writer

    Fields inherited from interface javax.script.ScriptContext

    ENGINE_SCOPE, GLOBAL_SCOPE
  • Constructor Summary

    Constructors 
    Constructor Description
    ScenarioContext​(ScenarioController sc)  
  • Method Summary

    Modifier and Type Method Description
    java.lang.Object getAttribute​(java.lang.String name)  
    java.lang.Object getAttribute​(java.lang.String name, int scope)  
    void setAttribute​(java.lang.String name, java.lang.Object value, int scope)  

    Methods inherited from class io.nosqlbench.engine.api.scripting.ScriptEnvBuffer

    getErrorWriter, getReader, getStderrText, getStdinText, getStdoutText, getTimedLog, getTimeLogLines, getWriter

    Methods inherited from class javax.script.SimpleScriptContext

    getAttributesScope, getBindings, getScopes, removeAttribute, setBindings, setErrorWriter, setReader, setWriter

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getAttribute

      public java.lang.Object getAttribute​(java.lang.String name)
      Specified by:
      getAttribute in interface javax.script.ScriptContext
      Overrides:
      getAttribute in class javax.script.SimpleScriptContext
    • getAttribute

      public java.lang.Object getAttribute​(java.lang.String name, int scope)
      Specified by:
      getAttribute in interface javax.script.ScriptContext
      Overrides:
      getAttribute in class javax.script.SimpleScriptContext
    • setAttribute

      public void setAttribute​(java.lang.String name, java.lang.Object value, int scope)
      Specified by:
      setAttribute in interface javax.script.ScriptContext
      Overrides:
      setAttribute in class javax.script.SimpleScriptContext