org.neo4j.server.webadmin.console
Class GremlinSession

java.lang.Object
  extended by org.neo4j.server.webadmin.console.GremlinSession
All Implemented Interfaces:
ScriptSession

public class GremlinSession
extends Object
implements ScriptSession


Field Summary
protected  StringWriter outputWriter
           
protected  GremlinWebConsole scriptEngine
           
 
Constructor Summary
GremlinSession(Database database)
           
 
Method Summary
 String evaluate(String script)
          Take some gremlin script, evaluate it in the context of this gremlin session, and return the result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

scriptEngine

protected GremlinWebConsole scriptEngine

outputWriter

protected StringWriter outputWriter
Constructor Detail

GremlinSession

public GremlinSession(Database database)
Method Detail

evaluate

public String evaluate(String script)
Take some gremlin script, evaluate it in the context of this gremlin session, and return the result.

Specified by:
evaluate in interface ScriptSession
Parameters:
script -
Returns:
the return string of the evaluation result, or the exception message.


Copyright © 2011 The Neo4j Graph Database Project. All Rights Reserved.